Skip to content

Commit

Permalink
fix: prod run docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Aug 20, 2023
1 parent 91dba3f commit 5bacfd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions packages/Dockerfile.dota
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ COPY ./$BUILD_CONTEXT/tsconfig.json ./
COPY ./$BUILD_CONTEXT/src ./src

# Run 'yarn build' only in production environment
ARG NODE_ENV
RUN echo "NODE_ENV is $NODE_ENV"

CMD [ "sh", "-c", "if [ \"$NODE_ENV\" = 'development' ]; then echo 'Dev no build!'; else yarn build; fi" ]
RUN yarn build

#################
# PROD #
Expand Down
5 changes: 1 addition & 4 deletions packages/Dockerfile.events
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ COPY ./$BUILD_CONTEXT/tsconfig.json ./
COPY ./$BUILD_CONTEXT/src ./src

# Run 'yarn build' only in production environment
ARG NODE_ENV
RUN echo "NODE_ENV is $NODE_ENV"

CMD [ "sh", "-c", "if [ \"$NODE_ENV\" = 'development' ]; then echo 'Dev no build!'; else yarn build; fi" ]
RUN yarn build

#################
# RUNNER #
Expand Down

0 comments on commit 5bacfd2

Please sign in to comment.