Skip to content

Commit

Permalink
Build client
Browse files Browse the repository at this point in the history
  • Loading branch information
rielas committed Jan 4, 2021
1 parent 839ee15 commit 6d9f3b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.git
node_modules
public
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ COPY --chown=node:node tsconfig.json ./
COPY --chown=node:node nest-cli.json ./
COPY --chown=node:node .env ./
COPY --chown=node:node src ./src
COPY --chown=node:node public ./public

USER node

RUN npm install
RUN npm run build

RUN cd public && npm install && npm run build

EXPOSE 3000

CMD [ "npm", "run", "start" ]

0 comments on commit 6d9f3b4

Please sign in to comment.