Voici la documentation : https://geoplateforme.pages.gpf-tech.ign.fr/documentation

Skip to content
Extraits de code Groupes Projets
Valider e4522646 rédigé par Julien Moura's avatar Julien Moura
Parcourir les fichiers

Merge branch 'packaging/fix-missing-libpg-dev' into 'main'

fix: Docker image missing libpq5

See merge request !8
parents 162d88b2 7e146a59
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!8fix: Docker image missing libpq5
Pipeline #41213 annulé avec les étapes
in 19 minutes et 19 secondes
......@@ -15,6 +15,11 @@ Unreleased
### Removed
-->
## 0.3.0 - 2023-12-22
- packaging: fix missing postgres-client dependencies in Dockerfil
## 0.2.0 - 2023-12-19
- upgrade toolbelt to 1.7.1
......@@ -23,4 +28,3 @@ Unreleased
- First version with all logique
- Initialization with [Gpf Cli Templater](https://gitlab.gpf-tech.ign.fr/oslandia/template-gpf-python-cli)
FROM python:3.11-slim
FROM python:3.11-bullseye
# Write .pyc files only once. See: https://stackoverflow.com/a/60797635/2556577
ENV PYTHONDONTWRITEBYTECODE 1
......@@ -20,23 +18,28 @@ ENV PIP_RETRIES 1
# PIP - DISABLE WARNING ABOUT ROOT USER
ENV PIP_ROOT_USER_ACTION ignore
WORKDIR /user/app
COPY requirements.txt .
COPY requirements/base*.txt ./requirements/
# update image - still as root
RUN apt update && apt upgrade -y \
git python3-pip \
libpq5 postgresql-client python3-pip \
&& apt autoremove --purge \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip install --no-cache-dir -U pip && \
python -m pip install --no-cache-dir -U setuptools wheel
# create a dedicated user to avoid to run as root
WORKDIR /user/app
COPY . .
# copy required files
COPY gpf_derivation_bdd/ ./gpf_derivation_bdd/
COPY setup.* ./
COPY README.md .
COPY requirements.txt .
COPY requirements/*.txt ./requirements/
RUN python -m pip install -U --no-cache-dir -r requirements.txt
# update Python install tooling and install requirements
RUN python -m pip install --no-cache-dir -U pip && \
python -m pip install --no-cache-dir -U setuptools wheel && \
python -m pip install --no-cache-dir -U --no-cache-dir -r requirements.txt
RUN python -m pip install -U -e .
# install project
RUN python -m pip install --no-cache-dir .
CMD ["bash"]
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter