19 lines
468 B
Docker
19 lines
468 B
Docker
FROM ghcr.io/astral-sh/uv:debian-slim@sha256:deb732ce3f437a6d40b55e74efea91202b8ffe7e9c26549a4ff5c831b92a25f0
|
|
|
|
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
|