update dockerfile && readme

This commit is contained in:
Daan Wijns 2020-03-22 11:30:39 +01:00
parent fd521ceb06
commit 2f27e4bd06
5 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,4 @@
nodemodules nodemodules
src
LICENSE.md LICENSE.md
README.md README.md
babel.config.js babel.config.js

View file

@ -24,6 +24,6 @@ module.exports = {
'no-underscore-dangle': 0, 'no-underscore-dangle': 0,
'no-param-reassign': 0, 'no-param-reassign': 0,
'no-unused-vars': 0, 'no-unused-vars': 0,
'indent': 4 'indent': 0
}, },
} }

View file

@ -3,13 +3,15 @@ FROM node:10-slim as build-stage
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install -D
COPY . . COPY . .
RUN npm run build RUN npm run build
# production stage # production stage
FROM node:10-slim as 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 #serve
EXPOSE 3001 EXPOSE 3001

View file

@ -39,14 +39,13 @@ Easiest way is with docker-compose:
container_name: vuetorrent container_name: vuetorrent
restart: always restart: always
ports: ports:
- "4000:4000" - "4000:3000"
environment: environment:
- VUE_APP_WEB_USER=vuetr - VUE_APP_WEB_USER=vuetr
- VUE_APP_WEB_PASS=vuetr - VUE_APP_WEB_PASS=vuetr
- QBIT_USER=qbit - QBIT_USER=qbit
- QBIT_PASS=qbit - QBIT_PASS=qbit
- QBIT_HOST=http://10.0.0.8:8080 - QBIT_HOST=https://qbit.example.com
- PORT=4000
``` ```
## Development ## Development

View file

@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "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", "lint": "vue-cli-service lint",
"start": "nodemon server/server.js" "start": "nodemon server/server.js"
}, },