Skip to content

Commit

Permalink
fix: убрал условие, немного изменил предыдущее, для обхода ошибки в л…
Browse files Browse the repository at this point in the history
…инте с .env
  • Loading branch information
shamemask committed Dec 11, 2024
1 parent 190725d commit 188a17e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ WORKDIR /usr/src/app
COPY --from=build /usr/src/app/packages/server/ts-dist ./server/ts-dist
COPY --from=build /usr/src/app/packages/client/dist ./client/dist
COPY --from=build /usr/src/app/node_modules ./node_modules

# Ensure .env exists, if it does, copy it, otherwise copy .env.example to .env
RUN if [ -f .env ]; then cp .env .env; else cp .env.example .env; fi
COPY --from=build /usr/src/app/.env ./.env

# EXPOSE $SERVER_PORT
CMD [ "node", "server/ts-dist" ]
Expand Down

0 comments on commit 188a17e

Please sign in to comment.