Downloader/Dockerfile

20 lines
468 B
Text
Raw Normal View History

2024-12-28 10:40:54 -05:00
FROM ghcr.io/astral-sh/uv:debian-slim@sha256:7209e1b02f3e2429ae87ef7d7c77f9e9e3a218d36e1c30bfd788c0f6c71ec6dc
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