diff --git a/.github/workflows/create-image.yml b/.github/workflows/create-image.yml index 31d4f9a7..9095cb28 100644 --- a/.github/workflows/create-image.yml +++ b/.github/workflows/create-image.yml @@ -36,6 +36,4 @@ jobs: context: . push: true tags: tiendat1011/DACN-Backend:latest - file: ./Dockerfile - build-args: - ENV_FILE: .env \ No newline at end of file + file: ./Dockerfile \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8404c891..3bbf1a14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM node:20.14-alpine +COPY .env .env + WORKDIR /src/app COPY ./package*.json .