Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion prod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.12-slim

# The uv installer requires curl (and certificates) to download the release archive
RUN apt-get update; \
apt-get install -y --no-install-recommends ca-certificates curl vim libprotobuf-c1; \
apt-get install -y --no-install-recommends ca-certificates curl vim libprotobuf-c1 build-essential; \
apt-get autoremove --purge -y; \
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
Expand Down Expand Up @@ -39,6 +39,10 @@ COPY . /app
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-dev

RUN apt-get purge -y --auto-remove build-essential; \
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

# Place executables in the environment at the front of the path
ENV PATH="/app/.venv/bin:$PATH"
COPY ./entrypoint.sh /entrypoint.sh
Expand Down
Loading