Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDragonheart committed Aug 16, 2023
1 parent 2d65895 commit 058463f
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand All @@ -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"]

0 comments on commit 058463f

Please sign in to comment.