Skip to content

Commit 26b0864

Browse files
committed
refactor
1 parent cae6b13 commit 26b0864

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/publish_docker.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ jobs:
6969
id: build-and-push
7070
uses: docker/build-push-action@v3
7171
with:
72-
context: ${{ env.BUILD_DIR }}/lookup-service-server
73-
build-contexts: schema=${{ env.BUILD_DIR }}
72+
context: ${{ env.BUILD_DIR }}
7473
file: ${{ env.BUILD_DIR }}/lookup-service-server/Dockerfile
7574
push: ${{ github.event_name != 'pull_request' }}
7675
tags: ${{ steps.meta.outputs.tags }}

lookup-service-server/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ FROM python:3
22

33
WORKDIR /usr/src/app
44

5-
COPY requirements.txt ./
6-
RUN pip install --no-cache-dir -r requirements.txt
7-
85
COPY . .
96

7+
WORKDIR /usr/src/app/lookup-service-server
8+
9+
RUN pip install --no-cache-dir -r requirements.txt
10+
1011
EXPOSE 8000
1112

1213
CMD ["fastapi", "run", "app/main.py", "--port", "8000"]

0 commit comments

Comments
 (0)