From 188a17ef8966a318ebc5d459961de9b2c1abd21b Mon Sep 17 00:00:00 2001 From: Daniil <77277774+shamemask@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:58:14 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D1=83?= =?UTF-8?q?=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B5,=20=D0=BD=D0=B5=D0=BC?= =?UTF-8?q?=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BF=D1=80=D0=B5=D0=B4=D1=8B=D0=B4=D1=83=D1=89=D0=B5?= =?UTF-8?q?=D0=B5,=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D0=B1=D1=85=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20=D0=B2=20=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D1=82=D0=B5=20=D1=81=20.env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .docker/server/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.docker/server/Dockerfile b/.docker/server/Dockerfile index 50a044c..6030e8c 100755 --- a/.docker/server/Dockerfile +++ b/.docker/server/Dockerfile @@ -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" ]