evy-kiwi-pinry (latest)
Published 2022-08-30 18:13:45 +00:00 by alemaire
Installation
docker pull git.le-maire.eu/alemaire/evy-kiwi-pinry:latest
sha256:30791ee257b8877881b543cec6fa32fb208f506f0ea0ccdf9d1869c45cded85c
Image Layers
ADD file:76b454ddb7dfe4d22afae844a7e67e7e5fb4570dae2e21bbd259a1f2e5839f33 in / |
CMD ["bash"] |
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV LANG=C.UTF-8 |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* |
ENV GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568 |
ENV PYTHON_VERSION=3.9.12 |
/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg dirmngr libbluetooth-dev libbz2-dev libc6-dev libexpat1-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; command -v gpgconf > /dev/null && gpgconf --kill all || :; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-system-expat --without-ensurepip ; nproc="$(nproc)"; make -j "$nproc" LDFLAGS="-Wl,--strip-all" ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; python3 --version |
/bin/sh -c set -eux; for src in idle3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done |
ENV PYTHON_PIP_VERSION=22.0.4 |
ENV PYTHON_SETUPTOOLS_VERSION=58.1.0 |
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/38e54e5de07c66e875c11a1ebbdb938854625dd8/public/get-pip.py |
ENV PYTHON_GET_PIP_SHA256=e235c437e5c7d7524fbce3880ca39b917a73dc565e0c813465b7a7a329bb279a |
/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version |
CMD ["python3"] |
ARG DEBIAN_FRONTEND=noninteractive |
WORKDIR /pinry |
|1 DEBIAN_FRONTEND=noninteractive /bin/sh -c mkdir /data && chown -R www-data:www-data /data |
|1 DEBIAN_FRONTEND=noninteractive /bin/sh -c groupadd -g 2300 tmpgroup && usermod -g tmpgroup www-data && groupdel www-data && groupadd -g 1000 www-data && usermod -g www-data www-data && usermod -u 1000 www-data && groupdel tmpgroup |
|1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get update && apt-get -y install nginx pwgen && apt-get -y install libopenjp2-7 libjpeg-turbo-progs libjpeg62-turbo-dev libtiff5-dev libxcb1 && if [ $(dpkg --print-architecture) = "arm64" -o $(dpkg --print-architecture) = "armhf" ]; then apt-get -y install apt-utils libpq-dev gcc; fi && rm -rf /var/lib/apt/lists/* && apt-get autoclean |
COPY file:024233d9e5b1c6e382e14bbb6d41d3df673cc987074032687ad9c77ce456999b in ./ |
|1 DEBIAN_FRONTEND=noninteractive /bin/sh -c pip install "rcssmin==1.0.6" --install-option="--without-c-extensions" && pip install -r requirements.txt |
COPY dir:45d6734c67612d861b663955cdbf49529e2e918a8a4e8316faa15cb2b72ae4d2 in /pinry/pinry-spa/dist |
COPY dir:9878d148d7ecac8fbbf62b1f3fca16f20b1261e78747bcec20878476de7d7087 in /root/.local |
ENV PATH=/root/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
COPY dir:fde5b42d5382e5ad26ceae2d3072acd549c024f721e090782e46e45778867e03 in . |
ADD file:acc65b3c371b4a27da24f9a904edec38f472bd056158e124cefd3ec3abfbada9 in /etc/nginx/nginx.conf |
ADD file:463ef4d0b32ff1b28b1740c9f0ec49dd471b032d39129a2c87dcb32c4c19180e in /etc/nginx/sites-enabled/default |
EXPOSE 80 |
ENV DJANGO_SETTINGS_MODULE=pinry.settings.docker |
VOLUME [/data] |
CMD ["/pinry/docker/scripts/start.sh"] |