Renovate Bot
886a568e5e
Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net>
23 lines
556 B
Docker
23 lines
556 B
Docker
FROM alpine:3.20.3
|
|
|
|
# hadolint ignore=DL3018
|
|
RUN apk add --no-cache \
|
|
py3-pip \
|
|
curl
|
|
|
|
WORKDIR /app
|
|
|
|
COPY templates/file_list.html ./templates/
|
|
COPY requirements.txt .
|
|
COPY app.py .
|
|
COPY gunicorn_config.py .
|
|
|
|
RUN pip install --no-cache-dir --break-system-packages -r requirements.txt
|
|
|
|
EXPOSE 5000
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s \
|
|
CMD curl -s -f http://localhost:5000/health || exit 1
|
|
|
|
#CMD [ "python3", "-m" , "flask", "run", "--port", "5000", "--host", "0.0.0.0"]
|
|
CMD [ "python3", "-m" , "gunicorn", "app:app", "-c", "gunicorn_config.py"]
|