From 2f27e4bd060175897aec67246e8ba80da3c2067c Mon Sep 17 00:00:00 2001 From: Daan Wijns Date: Sun, 22 Mar 2020 11:30:39 +0100 Subject: [PATCH] update dockerfile && readme --- .dockerignore | 1 - .eslintrc.js | 2 +- Dockerfile | 6 ++++-- README.md | 5 ++--- package.json | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.dockerignore b/.dockerignore index 34372f0f..69ed5d71 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,4 @@ nodemodules -src LICENSE.md README.md babel.config.js diff --git a/.eslintrc.js b/.eslintrc.js index 6e591d4f..c26e4153 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -24,6 +24,6 @@ module.exports = { 'no-underscore-dangle': 0, 'no-param-reassign': 0, 'no-unused-vars': 0, - 'indent': 4 + 'indent': 0 }, } diff --git a/Dockerfile b/Dockerfile index 07e12ba2..66fccea2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,15 @@ FROM node:10-slim as build-stage # Create app directory WORKDIR /usr/src/app COPY package*.json ./ -RUN npm install +RUN npm install -D COPY . . RUN npm run build # production stage FROM node:10-slim as production-stage -COPY --from=build-stage /usr/src/app /usr/src/app +WORKDIR /usr/src/app +COPY --from=build-stage /usr/src/app ./ +RUN rm -r node_modules && rm -r src && npm install #serve EXPOSE 3001 diff --git a/README.md b/README.md index 9fbf4408..5f786acb 100644 --- a/README.md +++ b/README.md @@ -39,14 +39,13 @@ Easiest way is with docker-compose: container_name: vuetorrent restart: always ports: - - "4000:4000" + - "4000:3000" environment: - VUE_APP_WEB_USER=vuetr - VUE_APP_WEB_PASS=vuetr - QBIT_USER=qbit - QBIT_PASS=qbit - - QBIT_HOST=http://10.0.0.8:8080 - - PORT=4000 + - QBIT_HOST=https://qbit.example.com ``` ## Development diff --git a/package.json b/package.json index 0c60521e..a1ebde91 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", - "build": "vue-cli-service build", + "build": "./node_modules/\\@vue/cli-service/bin/vue-cli-service.js build", "lint": "vue-cli-service lint", "start": "nodemon server/server.js" },