aasset (sha256:010ed3b346b5e12b0acd84586e93fff57222a756da3a7eb085756627b27d4cb0)
Published 2024-11-12 13:32:56 +01:00 by f-denkena
Installation
docker pull git.denkena-consulting.com/denkena-consulting/aasset@sha256:010ed3b346b5e12b0acd84586e93fff57222a756da3a7eb085756627b27d4cb0
sha256:010ed3b346b5e12b0acd84586e93fff57222a756da3a7eb085756627b27d4cb0
About this package
onePDM API based on Django and python3
Image Layers
ADD rootfs.tar.xz / # buildkit |
CMD ["bash"] |
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 default-libmysqlclient-dev dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev ; rm -rf /var/lib/apt/lists/* # buildkit |
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libbluetooth-dev tk-dev uuid-dev ; rm -rf /var/lib/apt/lists/* # buildkit |
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 |
ENV PYTHON_VERSION=3.13.0 |
ENV PYTHON_SHA256=086de5882e3cb310d4dca48457522e2e48018ecd43da9cdf827f6a0759efb07d |
RUN /bin/sh -c set -eux; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; 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; 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-lto --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; bin="$(readlink -ve /usr/local/bin/python3)"; dir="$(dirname "$bin")"; mkdir -p "/usr/share/gdb/auto-load/$dir"; cp -vL Tools/gdb/libpython.py "/usr/share/gdb/auto-load/$bin-gdb.py"; 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; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit |
RUN /bin/sh -c set -eux; for src in idle3 pip3 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 # buildkit |
CMD ["python3"] |
ENV PYTHONUNBUFFERED=1 |
WORKDIR /app |
COPY . /app # buildkit |
RUN /bin/sh -c mv /app/denkena_aas/settings.example.py /app/denkena_aas/settings.py && pip install -r requirements.txt --root-user-action=ignore && pip install gunicorn==23.0.0 --root-user-action=ignore # buildkit |
EXPOSE map[8000/tcp:{}] |
RUN /bin/sh -c chmod +x /app/entrypoint.sh && cp /app/mods/rest_framework.py /usr/local/lib/python3.13/site-packages/rest_framework/templatetags/rest_framework.py # buildkit |
ENTRYPOINT ["/app/entrypoint.sh"] |
CMD ["gunicorn" "--chdir" "/app" "denkena_aas.wsgi:application" "--bind" "0.0.0.0:8000"] |
Labels
Key | Value |
---|---|
org.opencontainers.image.created | 2024-11-12T12:31:22.673Z |
org.opencontainers.image.description | onePDM API based on Django and python3 |
org.opencontainers.image.licenses | |
org.opencontainers.image.revision | 6abe726cbe075a143fb919142d4d5eca0b3e9353 |
org.opencontainers.image.source | https://git.denkena-consulting.com/Denkena-Consulting/aas-onepdm |
org.opencontainers.image.title | aas-onepdm |
org.opencontainers.image.url | https://git.denkena-consulting.com/Denkena-Consulting/aas-onepdm |
org.opencontainers.image.version | master |
Details
2024-11-12 13:32:56 +01:00
Versions (38)
View all
Container
0
OCI / Docker
linux/amd64
436 MiB
sha-1d9121f
2024-11-14
latest
2024-11-14
renovate-django-allauth-65.x
2024-11-14
sha-b9e3a7e
2024-11-14
master
2024-11-14