Skip to content

Commit

Permalink
fix build context
Browse files Browse the repository at this point in the history
  • Loading branch information
enricofer committed Jun 13, 2024
1 parent c9c5e60 commit c93310c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
context: ./build_webapp
file: ./build_webapp/Dockerfile
build-contexts: |
root:./webapp
webapp_root:/webapp
push: false
tags: enricofer/djakart-docker-webapp:test-build-only

Expand Down
4 changes: 2 additions & 2 deletions build_webapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build --build-context root=./webapp -t djakart:latest ./build_webapp
# docker build --build-context webapp_root=./webapp -t djakart:latest ./build_webapp
FROM debian:bookworm-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
Expand All @@ -24,7 +24,7 @@ RUN dpkg -i kart_0.15.1_amd64.deb
RUN kart config --global user.email "you@example.com"
RUN kart config --global user.name "Your Name"

COPY --from=root requirements.txt /requirements.txt
COPY --from=webapp_root requirements.txt /requirements.txt

RUN python3 -m pip config --global set global.break-system-packages true

Expand Down

0 comments on commit c93310c

Please sign in to comment.