This repository has been archived on 2024-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
python-api-server/Dockerfile
Renovate Bot aef406921e
Some checks failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pull_request_closed/lint Pipeline was successful
ci/woodpecker/pull_request_closed/build Pipeline was successful
chore(deps): update alpine docker tag to v3.20.0
2024-05-23 00:02:04 +00:00

23 lines
553 B
Docker

FROM alpine:3.20.0
# 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 -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"]