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"]