This repository has been archived on 2024-06-12. You can view files and clone it, but cannot push or open issues or pull requests.
ipserv/Dockerfile
nexy7574 6b29f7d868
Some checks failed
Build and Publish ipserv / build_and_publish (push) Failing after 40s
Update docker workings
2024-04-28 00:09:49 +01:00

9 lines
No EOL
290 B
Docker

FROM python:3.12-slim
EXPOSE 80/tcp
WORKDIR /app
COPY requirements.txt /tmp
RUN pip install -r /tmp/requirements.txt
COPY cert/ /app/cert
COPY ipserv.py /app
CMD ["gunicorn", "-b", "0.0.0.0:80", "--forwarded-allow-ips", "*", "--worker-class", "uvicorn.workers.UvicornWorker", "ipserv:app"]