Skip to content

Commit 2603d7f

Browse files
gg
1 parent 971a99f commit 2603d7f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/api-docker-image.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ jobs:
2222
username: ${{ github.actor }}
2323
password: ${{ secrets.GITHUB_TOKEN }}
2424

25-
- name: Change directory to api
26-
run: cd api
27-
2825
- name: Build and Push Docker Image
2926
run: |
30-
docker build . --tag ghcr.io/upayanmazumder/cas-api:latest --build-arg NODE_ENV=production
27+
docker build ./api --tag ghcr.io/upayanmazumder/cas-api:latest --build-arg NODE_ENV=production
3128
docker push ghcr.io/upayanmazumder/cas-api:latest

api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /app
66
COPY requirements.txt ./
77

88
# Install dependencies for the api folder
9-
WORKDIR /app/
9+
WORKDIR /app
1010
RUN pip install --no-cache-dir -r requirements.txt
1111

1212
# Copy the local code to the container image

0 commit comments

Comments
 (0)