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
src
LICENSE.md
README.md
babel.config.js

View file

@ -24,6 +24,6 @@ module.exports = {
'no-underscore-dangle': 0,
'no-param-reassign': 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
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

View file

@ -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

View file

@ -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"
},