FROM python:3-slim
WORKDIR /app
COPY ipserv.py /app
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"]