Files
tchivert 36cfcec73a
build / build (push) Successful in 1m6s
fix arm build
2024-07-14 15:51:43 +02:00

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