Downloader/Dockerfile

20 lines
426 B
Text
Raw Permalink Normal View History

2024-08-03 00:15:02 -04:00
FROM python:3.12.4-alpine
WORKDIR /app
COPY src src
COPY README.md README.md
COPY requirements.txt requirements.txt
COPY LICENSE LICENSE
2024-08-05 15:41:01 -04:00
RUN apk add --no-cache curl
2024-08-03 00:15:02 -04:00
RUN python -m pip install --upgrade pip
RUN python -m pip install --no-cache-dir -r requirements.txt
CMD ["python", "src/main.py"]
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