File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# Thank you!
55ARG python_version=3.13-slim
66
7- # Allow service to handle stops gracefully
8- STOPSIGNAL SIGQUIT
9-
107FROM python:$python_version AS builder
118COPY --from=ghcr.io/astral-sh/uv:0.7 /uv /bin/
129
@@ -26,6 +23,9 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2623
2724FROM python:$python_version
2825
26+ # Allow service to handle stops gracefully
27+ STOPSIGNAL SIGQUIT
28+
2929# Set Git SHA environment variable
3030ARG git_sha="development"
3131ENV 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
3636COPY --from=builder /build /build
37+ COPY --from=builder /bin/uv /bin/uv
3738ENV PATH="/build/.venv/bin:$PATH"
3839
3940# Copy the source code in last to optimize rebuilding the image
40- WORKDIR /bot
41+ WORKDIR /app
4142COPY . .
4243
4344# Set dummy variables so collectstatic can load settings.py
You can’t perform that action at this time.
0 commit comments