aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-03-02 16:34:32 +0000
committerGravatar Chris Lovering <[email protected]>2025-03-02 16:34:32 +0000
commit66f78dca2b871d155d1024b682e4f03af447ab0f (patch)
tree12758a51b263ba2af44d7297f2f50f10c0539225
parentUpdate readme with instructions to setup the bot (diff)
Add note of .venv location choice in dockerfile
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 2407c91..da922de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,10 +37,12 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies from build cache
-WORKDIR /app
+# .venv not put in /app so that it doesn't conflict with the dev
+# volume we use to avoid rebuilding image every code change locally
COPY --from=builder /opt/king-arthur/.venv /opt/king-arthur/.venv
# Copy the source code in last to optimize rebuilding the image
+WORKDIR /app
COPY . .
ENV PATH="/opt/king-arthur/.venv/bin:$PATH"