2024-06-20 22:06:29 +02:00
|
|
|
FROM alpine:3.20.1
|
2023-04-12 16:08:55 +02:00
|
|
|
|
2024-01-22 21:40:33 +01:00
|
|
|
# hadolint ignore=DL3018
|
2023-11-08 16:20:13 +01:00
|
|
|
RUN apk add --no-cache \
|
2024-01-22 21:40:33 +01:00
|
|
|
py3-pip \
|
|
|
|
curl
|
2023-04-12 16:08:55 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2023-04-26 19:51:53 +02:00
|
|
|
COPY templates/file_list.html ./templates/
|
2023-04-12 16:08:55 +02:00
|
|
|
COPY requirements.txt .
|
|
|
|
COPY app.py .
|
2023-04-13 15:00:03 +02:00
|
|
|
COPY gunicorn_config.py .
|
2023-04-12 16:08:55 +02:00
|
|
|
|
2024-01-11 10:05:01 +01:00
|
|
|
RUN pip install --no-cache-dir --break-system-packages -r requirements.txt
|
2023-04-12 16:08:55 +02:00
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
2023-04-14 12:17:08 +02:00
|
|
|
HEALTHCHECK --interval=5s --timeout=3s \
|
|
|
|
CMD curl -f http://localhost:5000/health || exit 1
|
2023-04-13 14:58:39 +02:00
|
|
|
|
|
|
|
#CMD [ "python3", "-m" , "flask", "run", "--port", "5000", "--host", "0.0.0.0"]
|
|
|
|
CMD [ "python3", "-m" , "gunicorn", "app:app", "-c", "gunicorn_config.py"]
|