Try to upgrade gdal

This commit is contained in:
2025-08-25 05:33:39 +09:00
parent fe5a044c82
commit da2a1d64ef
5 changed files with 30 additions and 36 deletions

View File

@ -1,5 +1,6 @@
# FROM python:3.9.9-slim-buster
FROM osgeo/gdal:ubuntu-small-3.4.0
# FROM osgeo/gdal:ubuntu-small-3.4.0
FROM ubuntu:22.04
WORKDIR /app
@ -10,42 +11,36 @@ LABEL description="Development image for the Rogaining JP"
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ARG TZ Asia/Tokyo \
DEBIAN_FRONTEND=noninteractive
ARG TZ=Asia/Tokyo
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y
# Install GDAL dependencies
RUN apt-get install -y libgdal-dev g++ --no-install-recommends && \
apt-get clean -y
# Install system dependencies including GDAL
RUN apt-get update -y && \
apt-get install -y \
gdal-bin \
libgdal-dev \
python3-gdal \
python3 \
python3-pip \
g++ \
gcc \
postgresql-client \
libpq-dev \
netcat \
postgresql \
binutils \
libproj-dev \
libcurl4-openssl-dev \
libssl-dev \
libspatialindex-dev \
--no-install-recommends && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# Update C env vars so compiler can find gdal
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
RUN apt-get update \
&& apt-get -y install netcat gcc postgresql \
&& apt-get clean
RUN apt-get update \
&& apt-get install -y binutils libproj-dev gdal-bin python3-gdal
RUN apt-get install -y libcurl4-openssl-dev libssl-dev
RUN apt-get install -y libspatialindex-dev
RUN apt-get install -y python3
RUN apt-get update && apt-get install -y \
python3-pip
# libpqをアップグレード Added by Akira 2025-5-13
RUN apt-get update && apt-get install -y \
postgresql-client \
libpq-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# ベースイメージの更新とパッケージのインストール
RUN apt-get update && \
apt-get install -y \