Skip to content

Commit

Permalink
Fixes prod deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
swapkats committed Jul 5, 2020
1 parent 967fd4d commit 41e4085
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Dockerfile (tag: v3)
FROM node:12.18.2
WORKDIR /tmp
COPY package.json /tmp/
RUN npm config set registry http://registry.npmjs.org/ && npm install
COPY package.json yarn.lock /tmp/
RUN yarn install
WORKDIR /usr/src/app
COPY . /usr/src/app/
RUN cp -a /tmp/node_modules /usr/src/app/
CMD ["npm", "start"]
EXPOSE 8080
CMD ["yarn", "bundle"]
COPY /public /var/html/public
EXPOSE 80
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ services:
web:
build: .
ports:
- "8080:8080"
- "80:80"
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"type-check": "tsc --noEmit",
"bundle": "webpack",
"type-check:watch": "npm run type-check -- --watch",
"build": "npm run build:types && npm run build:js",
"build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline"
"type-check:watch": "npm run type-check -- --watch"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 41e4085

Please sign in to comment.