test-woodpecker-python/Containerfile
phil 329fc0531d
All checks were successful
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/tag/build Pipeline was successful
Improve container build
2025-06-27 03:06:45 +02:00

18 lines
650 B
Docker

# Build: podman build -t code.philo.ydns.eu/philorg/test-woodpecker -f Containerfile
FROM docker.io/python:alpine
COPY . /app
ENV UV_LINK_MODE=copy
WORKDIR /app
# Sync the project into a new environment, using the frozen lockfile
RUN \
--mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/local/bin/uv,target=/bin/uv \
--mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/lib/libpcre2-8.so.0,target=/usr/lib/libpcre2-8.so.0 \
--mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/bin/git,target=/usr/bin/git \
--mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-cache && uv pip install --system .
ENTRYPOINT ["foo"]