FROM python:3-slim
WORKDIR /app
COPY ipserv.py /app
EXPOSE 8000
RUN pip install flask requests gunicorn
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0", "--forwarded-allow-ips", "*", "ipserv:app"]