Downloader/Dockerfile
Renovate d37d593ba2
Some checks failed
Actions / Build and Push Images (pull_request) Has been skipped
Actions / Lint (pull_request) Failing after 18s
Pin dependencies
2024-12-28 15:40:54 +00:00

19 lines
468 B
Docker

FROM ghcr.io/astral-sh/uv:debian-slim@sha256:7209e1b02f3e2429ae87ef7d7c77f9e9e3a218d36e1c30bfd788c0f6c71ec6dc
WORKDIR /app
COPY src src
COPY README.md README.md
COPY pyproject.toml pyproject.toml
COPY uv.lock uv.lock
COPY LICENSE LICENSE
RUN apt-get update && apt-get install -y curl
RUN uv sync --no-dev
CMD ["uv", "run", "src/main.py"]
HEALTHCHECK --interval=1m --timeout=30s --start-period=10s --retries=3 CMD curl -f http://localhost:80 || exit 1
EXPOSE 80