mirror of
https://github.com/hexboy/maven-mirror-tool.git
synced 2025-04-21 22:19:10 +00:00
move installation command to build step
This commit is contained in:
parent
670acedcaf
commit
e199f3eed1
1 changed files with 4 additions and 1 deletions
|
@ -25,8 +25,11 @@ USER node
|
||||||
# Copy the rest of the source files into the image.
|
# Copy the rest of the source files into the image.
|
||||||
COPY --chown=node . .
|
COPY --chown=node . .
|
||||||
|
|
||||||
|
# Install packages
|
||||||
|
RUN yarn workspaces focus --production && yarn cache clean
|
||||||
|
|
||||||
# Expose the port that the application listens on.
|
# Expose the port that the application listens on.
|
||||||
EXPOSE 8008
|
EXPOSE 8008
|
||||||
|
|
||||||
# Run the application.
|
# Run the application.
|
||||||
CMD yarn workspaces focus --production && yarn run pm2 start --attach --env ${NODE_ENV}
|
ENTRYPOINT ["yarn", "run", "pm2", "start", "--attach", "--env", "${NODE_ENV}"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue