Downloader/Dockerfile
2024-12-28 04:20:58 +00:00

19 lines
498 B
Docker

FROM python:3.12.4-alpine@sha256:63094abdaf49e046da9f6529ecd6ce4d853d9bfbf00a25c52bbbb68b3223b490
WORKDIR /app
COPY src src
COPY README.md README.md
COPY requirements.txt requirements.txt
COPY LICENSE LICENSE
RUN apk add --no-cache curl
RUN python -m pip install --upgrade pip
RUN python -m pip install --no-cache-dir -r requirements.txt
CMD ["python", "src/main.py"]
HEALTHCHECK --interval=1m --timeout=30s --start-period=10s --retries=3 CMD curl -f http://localhost:80 || exit 1
EXPOSE 80