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
9 changes: 4 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM --platform=linux/amd64 python:3.11-slim-bookworm AS base

COPY --from=ghcr.io/astral-sh/uv:0.5.30 /uv /uvx /bin/

ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
ENV UV_CACHE_DIR='/tmp/uv-cache/'
ENV UV_COMPILE_BYTECODE=1
ENV VIRTUAL_ENV="/opt/venv"

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -41,9 +45,6 @@ RUN echo "Install OS dependencies for python app requirements" && \

COPY requirements.txt .

RUN pip install uv

ENV UV_CACHE_DIR='/tmp/uv-cache/'
RUN echo "Installing python requirements" && \
python3 -m venv /opt/venv && \
uv pip sync --python /opt/venv/bin/python requirements.txt
Expand Down Expand Up @@ -106,9 +107,7 @@ COPY --from=python_build --chown=notify:notify /opt/venv /opt/venv
RUN mkdir -p app

# Install dev/test requirements
RUN pip install uv
COPY --chown=notify:notify Makefile requirements_for_test.txt package-lock.json package.json rollup.config.mjs ./
ENV UV_CACHE_DIR='/tmp/uv-cache/'
RUN make bootstrap

COPY --chown=notify:notify . .
Expand Down