
All checks were successful
continuous-integration/drone/pr Build is passing
its faster, and has some nicer features
32 lines
625 B
Docker
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" ]
|
|
|
|
|