Skip to content

Commit

Permalink
Update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt authored Aug 1, 2024
1 parent 2b5f60e commit 0f644a1
Showing 1 changed file with 46 additions and 22 deletions.
68 changes: 46 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,49 @@
# Base image with:
# - Ubuntu 22.04
# - Python 3.10.12
# - GDAL 3.7.3, released 2023/10/30
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.7.3

ENV DEBIAN_FRONTEND=noninteractive \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8

# Apt installation
RUN apt-get update && \
apt-get install -y \
build-essential \
fish \
git \
vim \
htop \
wget \
unzip \
python3-pip \
libpq-dev \
# # Base image with:
# # - Ubuntu 22.04
# # - Python 3.10.12
# # - GDAL 3.7.3, released 2023/10/30
# FROM ghcr.io/osgeo/gdal:ubuntu-small-3.7.3

# ENV DEBIAN_FRONTEND=noninteractive \
# LC_ALL=C.UTF-8 \
# LANG=C.UTF-8

# # Apt installation
# RUN apt-get update && \
# apt-get install -y \
# build-essential \
# fish \
# git \
# vim \
# htop \
# wget \
# unzip \
# python3-pip \
# libpq-dev \
# && apt-get autoclean && \
# apt-get autoremove && \
# rm -rf /var/lib/{apt,dpkg,cache,log}


FROM osgeo/gdal:ubuntu-small-3.4.1 as base

ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

RUN apt-get update \
&& apt-get install -y \
# Build tools
build-essential \
git \
python3-pip \
# For Psycopg2
libpq-dev python3-dev \
# For SSL
ca-certificates \
# for pg_isready
postgresql-client \
# Try adding libgeos-dev
libgeos-dev \
# Tidy up
&& apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/{apt,dpkg,cache,log}
Expand Down

0 comments on commit 0f644a1

Please sign in to comment.