Removed some RUN commands and more

This commit is contained in:
root 2019-06-12 23:03:43 +02:00
parent adf083ecbc
commit e7961f1c3e

View file

@ -17,6 +17,7 @@ RUN apk add --no-cache \
pip2 install -r /tmp/requirements.txt && \ pip2 install -r /tmp/requirements.txt && \
rm -r /root/.cache rm -r /root/.cache
# Download Geolite base
RUN wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz && \ RUN wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz && \
mkdir tmpgeo && tar -xvf GeoLite2-City.tar.gz -C ./tmpgeo && \ mkdir tmpgeo && tar -xvf GeoLite2-City.tar.gz -C ./tmpgeo && \
cp /tmpgeo/*/GeoLite2-City.mmdb / && rm -rf ./tmpgeo cp /tmpgeo/*/GeoLite2-City.mmdb / && rm -rf ./tmpgeo
@ -24,5 +25,5 @@ RUN wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.g
# Copy the application file # Copy the application file
ADD geoparser.py / ADD geoparser.py /
# Run our app using Supervisord # Run our app
CMD [ "python", "./geoparser.py"] CMD [ "python", "./geoparser.py"]