Simplified docker files

This commit is contained in:
Kasra Bigdeli
2019-01-18 22:35:05 -08:00
parent e16e7a0b4b
commit 65f917d29f
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -5,10 +5,10 @@ WORKDIR /usr/src/app
# Build backend code
COPY package.json /usr/src/app/
RUN npm install && npm cache clean --force
COPY . /usr/src/app
RUN npm install && npm cache clean --force
RUN npm run build
RUN mv ./edge-override.json ./config-override.json
+1 -2
View File
@@ -7,9 +7,8 @@ WORKDIR /usr/src/app
# Build backend code
COPY package.json /usr/src/app/
RUN npm install && npm cache clean --force
COPY . /usr/src/app
RUN npm install && npm cache clean --force
RUN npm run build
+1 -1
View File
@@ -7,7 +7,7 @@
"dev": "echo 'RECOMPILING' && npx madge --circular --extensions ts ./ && rm -rf ./built && npx tsc && sudo ./dev-scripts/dev-reset-service.sh",
"clean": "sudo ./dev-scripts/dev-clean-run-as-dev.sh",
"tslint": "tslint -c tslint.json -p tsconfig.json",
"build": "echo \"USE DEPLOY SCRIPT\" ",
"build": "rm -rf ./built && npx tsc",
"test": "jest"
},
"dependencies": {