Downloader/Dockerfile
cswimr 4fa52fe19d
Some checks failed
Actions / Lint (push) Failing after 16s
Actions / Build and Push Images (push) Successful in 33s
switch to uv
2024-12-28 10:40:12 -05:00

19 lines
396 B
Docker

FROM ghcr.io/astral-sh/uv:debian-slim
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