From 13431e7ddbe35bc43ab246283c96027947e64dfa Mon Sep 17 00:00:00 2001 From: s1lvax Date: Fri, 11 Oct 2024 12:01:33 +0200 Subject: [PATCH] dockerfile --- .github/workflows/deploy.yml | 2 +- Dockerfile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7a83522..1f823b9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,4 +47,4 @@ jobs: docker build -t route . docker stop route || true docker rm route || true - docker run -d --name route --restart always -p 3002:3000 route + docker run -d --name route --restart always --env-file .env -p 3002:3000 route diff --git a/Dockerfile b/Dockerfile index 4da915a..61cb600 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,6 @@ COPY --from=builder /app/build build/ COPY --from=builder /app/node_modules node_modules/ COPY package.json . -RUN npx prisma generate # Set the environment and expose the port EXPOSE 3000