geostat/Dockerfile
Alexey Nizhegolenko 62ae4451e2
Downgraded version of Alpine
I downgraded version of Alpine Linux version due to the problem with the new Python 3.10 and some libs in my program.
2022-07-17 23:53:25 +03:00

30 lines
659 B
Docker

FROM alpine:3.9
LABEL maintainer "Alexey Nizhegolenko <ratibor78@gmail.com>"
LABEL description "Geostat application"
# Copy the requirements file
COPY requirements.txt /tmp/requirements.txt
# Install all needed packages
RUN apk add --no-cache \
python3 \
bash && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
pip3 install -r /tmp/requirements.txt && \
rm -r /root/.cache
# Copy the Geolite base
ADD GeoLite2-City.mmdb /
#Copy the geohash lib locally
ADD geohash /
# Copy the application file
ADD geoparser.py /
# Run our app
CMD [ "python3", "./geoparser.py"]