test-woodpecker-python/Containerfile

19 lines
619 B
Text
Raw Normal View History

2025-06-24 12:43:29 +02:00
# Build: podman build -t code.philo.ydns.eu/philorg/test-woodpecker -f Containerfile
2025-06-20 19:21:15 +02:00
2025-06-24 12:43:29 +02:00
FROM docker.io/python:alpine
2025-06-20 19:21:15 +02:00
COPY . /app
2025-06-25 16:23:04 +02:00
ENV UV_LINK_MODE=copy
2025-06-20 19:21:15 +02:00
WORKDIR /app
2025-06-25 15:33:43 +02:00
# 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 \
2025-06-25 16:20:59 +02:00
--mount=type=cache,target=/root/.cache/uv \
2025-06-25 14:57:16 +02:00
uv pip install --system .
2025-06-20 19:21:15 +02:00
2025-06-24 12:43:29 +02:00
ENTRYPOINT ["foo"]