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

7 lines
273 B
Docker
Raw Normal View History

2024-04-17 16:27:58 +01:00
FROM python:3-slim
WORKDIR /app
COPY ipserv.py /app
2024-04-19 10:53:06 +01:00
EXPOSE 80
RUN pip install fastapi requests gunicorn uvicorn[standard] aiohttp
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:80", "--forwarded-allow-ips", "*", "--worker-class", "uvicorn.workers.UvicornWorker", "ipserv:app"]