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

Skip to content
Extraits de code Groupes Projets

add dockerfile local

Fermé Benoit Ducarouge a demandé de fusionner add-dockerfile-local vers main
1 fil de conversation non résolu
1 fichier
+ 42
0
Comparer les modifications
  • Côte à côte
  • En ligne
Dockerfile_local 0 → 100644
+ 42
0
FROM FROM osgeo/gdal:ubuntu-small-latest
# Write .pyc files only once. See: https://stackoverflow.com/a/60797635/2556577
ENV PYTHONDONTWRITEBYTECODE 1
# Make sure that stdout and stderr are not buffered. See: https://stackoverflow.com/a/59812588/2556577
ENV PYTHONUNBUFFERED 1
# Remove assert statements and any code conditional on __debug__. See: https://docs.python.org/3/using/cmdline.html#cmdoption-O
ENV PYTHONOPTIMIZE 2
# PIP - DISABLE VERSION CHECK
ENV PIP_DISABLE_PIP_VERSION_CHECK 1
# PIP - EXTRA_INDEX_URL
# ENV PIP_EXTRA_INDEX_URL https://gitlab.gpf-tech.ign.fr/api/v4/groups/55/packages/pypi
# PIP - HIDE PROGRESS BAR
ENV PIP_PROGRESS_BAR off
# PIP - RETRIES
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/
RUN apt update && apt upgrade -y \
git 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
COPY . .
RUN python -m pip install -U --no-cache-dir "PySocks<2"
RUN python -m pip install -U --no-cache-dir -r requirements/base-pypi.txt
RUN python -m pip install -U --no-cache-dir -r requirements/base-gpf.txt --proxy socks5://localhost:8645 --extra-index-url https://gitlab.gpf-tech.ign.fr/api/v4/groups/55/-/packages/pypi/simple --retries 1
Veuillez vous inscrire ou vous connecter pour répondre
RUN python -m pip install -U -e .
CMD ["bash"]
Chargement en cours