Skip to content

Commit 3164711

Browse files
committed
Corrected dockerfile to copy uv over from build step
Probably fine, right? (I forgot how to dockerfile, please forgive me)
1 parent c552bab commit 3164711

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Thank you!
55
ARG python_version=3.13-slim
66

7-
# Allow service to handle stops gracefully
8-
STOPSIGNAL SIGQUIT
9-
107
FROM python:$python_version AS builder
118
COPY --from=ghcr.io/astral-sh/uv:0.7 /uv /bin/
129

@@ -26,6 +23,9 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2623

2724
FROM python:$python_version
2825

26+
# Allow service to handle stops gracefully
27+
STOPSIGNAL SIGQUIT
28+
2929
# Set Git SHA environment variable
3030
ARG git_sha="development"
3131
ENV GIT_SHA=$git_sha
@@ -34,10 +34,11 @@ ENV GIT_SHA=$git_sha
3434
# .venv not put in /app so that it doesn't conflict with the dev
3535
# volume we use to avoid rebuilding image every code change locally
3636
COPY --from=builder /build /build
37+
COPY --from=builder /bin/uv /bin/uv
3738
ENV PATH="/build/.venv/bin:$PATH"
3839

3940
# Copy the source code in last to optimize rebuilding the image
40-
WORKDIR /bot
41+
WORKDIR /app
4142
COPY . .
4243

4344
# Set dummy variables so collectstatic can load settings.py

0 commit comments

Comments
 (0)