17 lines
367 B
Docker
17 lines
367 B
Docker
FROM python:slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir --upgrade pip
|
|
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
|
|
VOLUME ["/var/lib/GeoIP"]
|
|
|
|
COPY geoipweb.py template.html /app
|
|
|
|
EXPOSE 8080
|
|
ENV FLASK_APP=geoipweb
|
|
CMD [ "python", "-m" , "gunicorn", "geoipweb:app", "-w 1", "-b 0.0.0.0:8080" ]
|