Skip to content

Commit

Permalink
fix : dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bik1111 committed Sep 18, 2023
1 parent 9c703e2 commit aac2378
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker Image
run: |
docker build --build-arg PROJECT_ID="${{env.PROJECT_ID}}" \
--build-arg PRIVATE_KEY_ID="${{env.PRIVATE_KEY_ID}}" \
--build-arg CLIENT_EMAIL="${{env.CLIENT_EMAIL}}" \

- name: Cache docker layers
uses: actions/cache@v2
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ COPY package*.json ./

RUN npm install

RUN docker build --build-arg PROJECT_ID=$PROJECT_ID \
--build-arg PRIVATE_KEY_ID=$PRIVATE_KEY_ID \
--build-arg CLIENT_EMAIL=$CLIENT_EMAIL \
-t batshu-backend:latest .

COPY . .

CMD ["npm", "run", "serve"]
Expand Down

0 comments on commit aac2378

Please sign in to comment.