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

8 lines
No EOL
310 B
Docker

FROM python:3-slim
WORKDIR /app
COPY ipserv.py /app
EXPOSE 80/tcp
RUN pip install fastapi requests gunicorn uvicorn[standard] aiohttp
ARG WORKERS=${WORKERS:-4}
CMD ["gunicorn", "-w", ${WORKERS}, "-b", "0.0.0.0:80", "--forwarded-allow-ips", "*", "--worker-class", "uvicorn.workers.UvicornWorker", "ipserv:app"]