Skip to content

Commit

Permalink
ci: copy only required files into container image
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqu committed Mar 25, 2024
1 parent d02df19 commit 34cfcaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ ENV APP_HOME="/usr/src/app"

WORKDIR ${APP_HOME}

COPY . ${APP_HOME}/
COPY node_modules ${APP_HOME}/node_modules
COPY package.json ${APP_HOME}/package.json
COPY pm2.json ${APP_HOME}/pm2.json
COPY dist ${APP_HOME}/dist

ENTRYPOINT ["tini", "--"]

Expand Down

0 comments on commit 34cfcaf

Please sign in to comment.