2020-06-25 22:43:33 +02:00
|
|
|
FROM lsiobase/alpine:3.12
|
|
|
|
LABEL maintainer="GilbN"
|
|
|
|
|
|
|
|
WORKDIR /geoip2influx
|
|
|
|
COPY requirements.txt geoip2influx.py /geoip2influx/
|
|
|
|
RUN \
|
|
|
|
echo " ## Installing packages ## " && \
|
|
|
|
apk add --no-cache --virtual=build-dependencies \
|
|
|
|
python3 \
|
|
|
|
py3-pip \
|
2020-08-13 13:52:41 +02:00
|
|
|
logrotate \
|
2020-06-25 22:43:33 +02:00
|
|
|
libmaxminddb && \
|
|
|
|
echo " ## Installing python modules ## " && \
|
|
|
|
pip3 install --no-cache-dir -r requirements.txt
|
2020-08-13 13:52:41 +02:00
|
|
|
COPY root/ /
|