Files
fsfe-website/Dockerfile
Darragh Elliott c79f5ef415
All checks were successful
continuous-integration/drone/pr Build is passing
feat: use uv
its faster, and has some nicer features
2025-06-25 18:58:17 +01:00

32 lines
625 B
Docker

FROM debian:latest
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Install deps
RUN apt-get update && apt-get install --yes --no-install-recommends \
rsync \
libxslt1.1 \
libxml2 \
git \
node-less \
openssh-client \
ca-certificates \
expect
# Set uv project env, to persist stuff moving dirs
ENV UV_PROJECT_ENVIRONMENT=/root/.cache/uv/venv
# Set the workdir
WORKDIR /website-source
# Copy the pyproject and build deps
# Done in a seperate step for optimal docker caching
COPY ./pyproject.toml .
RUN uv sync --no-install-package build
# Copy everything else
COPY . .
ENTRYPOINT [ "bash", "./entrypoint.sh" ]