ADD file:64c455af1bb18ff2c202a244e058b6e5ac147b89410ed36edc5e29f4b6f02c5d in / |
CMD ["bash"] |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl netbase wget ; rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -ex; if ! command -v gpg > /dev/null; then apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr ; rm -rf /var/lib/apt/lists/*; fi |
/bin/sh -c apt-get update && apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps && rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 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 $( if apt-cache show 'default-libmysqlclient-dev' 2>/dev/null | grep -q '^Version:'; then echo 'default-libmysqlclient-dev'; else echo 'libmysqlclient-dev'; fi ) ; rm -rf /var/lib/apt/lists/* |
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 libbluetooth-dev tk-dev uuid-dev ; rm -rf /var/lib/apt/lists/* |
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D |
ENV PYTHON_VERSION=3.10.5 |
/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"; 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-lto --with-system-expat --without-ensurepip ; nproc="$(nproc)"; make -j "$nproc" ; 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; 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/6ce3639da143c5d79b44f94b04080abf2531fd6e/public/get-pip.py |
ENV PYTHON_GET_PIP_SHA256=ba3ab8267d91fd41c58dbce08f76db99f747f716d85ce1865813842bb035524d |
/bin/sh -c set -eux; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; 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 TARGETPLATFORM |
|1 TARGETPLATFORM=linux/arm64 /bin/sh -c set -e; mkdir /build_ffmpeg; cd /build_ffmpeg; case "$TARGETPLATFORM" in "linux/amd64") ffmpeg_arch="amd64";; "linux/arm64") ffmpeg_arch="arm64";; "linux/arm/v7") ffmpeg_arch="armhf";; *) echo "TARGETPLATFORM $TARGETPLATFORM not found"; exit 1 ;; esac; wget "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-${ffmpeg_arch}-static.tar.xz"; wget "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-${ffmpeg_arch}-static.tar.xz.md5"; md5sum -c "ffmpeg-release-${ffmpeg_arch}-static.tar.xz.md5"; tar Jxf "ffmpeg-release-${ffmpeg_arch}-static.tar.xz"; mv "ffmpeg-5.0.1-${ffmpeg_arch}-static/ffmpeg" /usr/bin; cd /; rm -rf /build_ffmpeg; |
|1 TARGETPLATFORM=linux/arm64 /bin/sh -c apt-get update && apt-get install -y nginx && apt-get clean && mkdir /ucast && chown 1000:1000 /ucast && chown -R 1000:1000 /var/lib/nginx /var/log/nginx |
COPY file:426c2090fa178850b087a40b8a5617cb14bc7345b147237354368ccdad2fe9b5 in /etc/nginx/nginx.conf |
COPY dir:d89f045ab22c60d6019ae22e29e4badfa0ae45799ba506b39d2f8fa08c67b879 in /etc/nginx/conf.d |
COPY file:ac5dc8b73f6ba0b940f0a50f324aefc1aa85b94357a1e2cb36a5178bdaa2b59b in /entrypoint.py |
COPY dir:f40ba3098dcc196712adc75c00372fdeaca1317f5f767bbdf2073b2f03651be9 in /install |
|1 TARGETPLATFORM=linux/arm64 /bin/sh -c pip install -- /install/*.whl gunicorn honcho && rm -rf ~/.cache/pip |
ENV UCAST_WORKDIR=/ucast |
EXPOSE 8001 |
ENTRYPOINT /entrypoint.py |