matchy/Dockerfile
Renovate Bot fb7532ab86
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 37s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m47s
Update python Docker tag to v3.13
2024-10-08 01:00:07 +00:00

20 lines
No EOL
726 B
Docker

# Split out the wheel build into the non-slim image
# See https://github.com/docker-library/python/issues/869
FROM python:3.13 AS build
COPY requirements.txt ./
RUN --mount=type=cache,target=/var/cache/buildkit/pip \
pip wheel --wheel-dir /wheels -r requirements.txt
FROM python:3.13-slim
LABEL org.opencontainers.image.source=https://github.com/mdiluz/matchy
LABEL org.opencontainers.image.description="Matchy matches matchees"
LABEL org.opencontainers.image.licenses=Unlicense
WORKDIR /usr/src/app
COPY requirements.txt ./
COPY --from=build /wheels /wheels
RUN --mount=type=cache,target=/var/cache/buildkit/pip \
pip install --find-links /wheels --no-index -r requirements.txt
COPY . .
CMD ["python", "matchy.py"]