test-woodpecker-python/Containerfile

17 lines
536 B
Text
Raw Permalink 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:3.13-slim
FROM docker.io/python:alpine
#FROM ghcr.io/astral-sh/uv:python3.13-alpine
2025-06-20 19:21:15 +02:00
#RUN apk add --no-cache git
2025-06-24 12:43:29 +02:00
#COPY --from=ghcr.io/astral-sh/uv:python3.13-alpine /usr/local/bin/uv /usr/local/bin/
2025-06-20 19:21:15 +02:00
COPY . /app
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /app
2025-06-24 12:43:29 +02:00
RUN --mount=from=ghcr.io/astral-sh/uv:alpine,source=/usr/local/bin/uv,target=/bin/uv uv pip install --system .
2025-06-20 19:21:15 +02:00
2025-06-24 12:43:29 +02:00
ENTRYPOINT ["foo"]