-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d65895
commit 058463f
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,16 +7,21 @@ LABEL maintainer="Massimiliano Moraca <[email protected]>" | |
# 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"] |