diff --git a/Dockerfile b/Dockerfile index 2df0d6c..ab75a3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,16 +7,21 @@ LABEL maintainer="Massimiliano Moraca " # Disable Prompt During Packages Installation ARG DEBIAN_FRONTEND=noninteractive # Update&Upgrade Ubuntu -RUN apt-get update -y && apt-get upgrade -y && apt-get -y autoremove +RUN apt update -y && apt upgrade -y && apt -y autoremove # Install useful packages -RUN apt-get install -y \ +RUN apt install -y \ nano \ unzip \ wget \ - curl + curl \ + aptitude RUN mkdir "home/app" WORKDIR "home/app" +# Manage tzdata +RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC +RUN aptitude install -y tzdata + # OS as Layer FROM os as gis-os # Set Python environment variables @@ -25,7 +30,7 @@ ENV PYTHONDONTWRITEBYTECODE 1 # Prevents Python from buffering stdout and stderr ENV PYTHONUNBUFFERED 1 # Install python and upgrade pip -RUN apt-get install -y \ +RUN aptitude install -y \ python3-pip \ python3-venv \ python3-dev \ @@ -35,15 +40,18 @@ RUN apt-get install -y \ binutils RUN pip3 install --upgrade pip # Upgrade Python's packages -RUN pip3 install --upgrade wheel +RUN pip3 install --upgrade wheel pillow # Installing Geospatial libraries -RUN apt-get install -y \ +RUN aptitude install -y \ libpq-dev \ # Install PROJ libproj-dev proj-data proj-bin \ # Install GEOS libgeos-dev # Install GDAL -RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y tzdata \ - libgdal-dev python3-gdal gdal-bin +RUN aptitude install -y \ + libgdal-dev \ + python3-gdal \ + gdal-bin \ + # CMD ["gdalinfo", "--version"] \ No newline at end of file