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