Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
ci(docker): modify to working Dockerfile
Browse files Browse the repository at this point in the history
Since everything that is not needed is already blocked off by the dockerignore file, we can safely
extend from version 16 of NodeJS and copy all the contents exposed in the context over to the Docker
container. From there, we will simply follow the standard procedure of installing all the needed
packages, build the project, and start the project.
  • Loading branch information
mahyarmirrashed committed Sep 12, 2021
1 parent 0f75fc1 commit 396e191
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM node:16
WORKDIR .
COPY package.json .
COPY yarn.lock .
COPY tsconfig.json .

COPY . .

RUN yarn install
RUN yarn build
CMD yarn start

CMD yarn start

0 comments on commit 396e191

Please sign in to comment.