Downloader/Dockerfile

20 lines
468 B
Text
Raw Normal View History

FROM ghcr.io/astral-sh/uv:debian-slim@sha256:d34e62cbfa87451e7ae956a9183954b5800fb5ab8d4aa9452fefdfcf0d1950e1
2024-08-03 00:15:02 -04:00
WORKDIR /app
COPY src src
COPY README.md README.md
2024-12-28 10:40:12 -05:00
COPY pyproject.toml pyproject.toml
COPY uv.lock uv.lock
2024-08-03 00:15:02 -04:00
COPY LICENSE LICENSE
2024-12-28 10:40:12 -05:00
RUN apt-get update && apt-get install -y curl
2024-08-05 15:41:01 -04:00
2024-12-28 10:40:12 -05:00
RUN uv sync --no-dev
2024-08-03 00:15:02 -04:00
2024-12-28 10:40:12 -05:00
CMD ["uv", "run", "src/main.py"]
2024-08-03 00:15:02 -04:00
2024-08-05 15:41:01 -04:00
HEALTHCHECK --interval=1m --timeout=30s --start-period=10s --retries=3 CMD curl -f http://localhost:80 || exit 1
2024-08-03 00:15:02 -04:00
EXPOSE 80