Namespace
tiangolo
Image / Tag
uwsgi-nginx-flask:python3.8-alpine-2023-09-04
Content Digest
sha256:131f641f95d9816072d341848245df396f46a2f1c4c13c39b40a4af0a6deb486
Details
Created

2023-09-04 00:09:22 UTC

Size

41.6 MB

Content Digest
Labels
  • maintainer
    Sebastian Ramirez <tiangolo@gmail.com>

Environment
ALPINEPYTHON

python3.8

GPG_KEY

E3FF2839C048B25C084DEBE9B26995E310250568

LANG

C.UTF-8

LISTEN_PORT

80

NGINX_MAX_UPLOAD

0

NGINX_WORKER_PROCESSES

1

PATH

/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PYTHONPATH

/app

PYTHON_GET_PIP_SHA256

c518250e91a70d7b20cceb15272209a4ded2a0c263ae5776f129e0d9b5674309

PYTHON_GET_PIP_URL

https://github.com/pypa/get-pip/raw/3cb8888cc2869620f57d5d2da64da38f516078c7/public/get-pip.py

PYTHON_PIP_VERSION

21.2.4

PYTHON_SETUPTOOLS_VERSION

57.5.0

PYTHON_VERSION

3.8.12

STATIC_INDEX

0

STATIC_PATH

/app/static

STATIC_URL

/static

UWSGI_CHEAPER

2

UWSGI_INI

/app/uwsgi.ini

UWSGI_PLUGIN

python3

UWSGI_PROCESSES

16


Layers

[#000] sha256:5758d4e389a3f662e94a85fb76143dbe338b64f8d2a65f45536a9663b05305ad - 6.47% (2.69 MB)

[#001] sha256:b8988a686bbdf503e1884e129cd15b1c21e9b99679011c8b181fcc33ac850f7b - 0.65% (275 KB)

[#002] sha256:2d2ab718c41985f2aa8a1c6c25005b8ab119cd98a6f8a6699d102c6efcc2b6e3 - 25.76% (10.7 MB)

[#003] sha256:87032375e817032d5e56d5d6cc8774883bf55f8321306de943d6ffef175a1a2f - 0.0% (230 Bytes)

[#004] sha256:af7a7515e8bd131fbdc0ab8c14301cafc9abfe3288ffe2764c02715bf36563db - 5.39% (2.24 MB)

[#005] sha256:f74ba8b2c7cfc49f259532efe318886a6aa7b695304842a66bf8402a7120688b - 0.0% (1.42 KB)

[#006] sha256:b496683fc1cf6d0caec4c2b601ab37c8728e99f9834f1f6e8072f5073bf0136b - 15.31% (6.37 MB)

[#007] sha256:271c858aedfb5c85caa29639aedba30e8949de34cf37d4406f57c9474a85cda6 - 33.5% (13.9 MB)

[#008] sha256:68ad635e7c2253b6a3b48f8c261bb237822aa669f9f482f3e723ae6ad5c9b7c1 - 0.0% (382 Bytes)

[#009] sha256:80b9d54bd8b8c1c80143681920a1aa94766b9c9fe6889f0d78b8a98f69df24ab - 4.77% (1.98 MB)

[#010] sha256:de07b3080a7e75bc185910d045bfafb4250c81604c1b0c18a430f4ec53d6e8fc - 0.0% (442 Bytes)

[#011] sha256:6e717b30f272d25a6f346cfab5ad60c49ce84fddc4ee837f060fe7e96d848db9 - 0.0% (465 Bytes)

[#012] sha256:b2e80bad7fcf9ed713dae94db454ef0d0de091ba3ff89c17486abd11754a9ed5 - 0.0% (461 Bytes)

[#013] sha256:4e574695eb80ccf48de0c9f52503247240c165764037281d12b378183971a6fb - 0.0% (321 Bytes)

[#014] sha256:13e524a622f8d2d294f5ef6fecf081146c585ea6575a392f7e733d3ccafb5c2b - 0.0% (322 Bytes)

[#015] sha256:aa6ece30b1524de0cf5ae64806e3075bb37dc278f18764737503b3bf1ad7b235 - 0.0% (1.15 KB)

[#016] sha256:5bc9a5017d542881d703f123d27c73006ab76b1e123fafeed5e2d17e4722b8c9 - 0.0% (1.15 KB)

[#017] sha256:4c4a3df3f1f46d2b6204e8917b0cafd65a1be257ae4a83c371532188f30cac0f - 0.0% (564 Bytes)

[#018] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#019] sha256:ffc54453bbcce0dd1a61f1c47cedee34247e2d767cd8db6e1e01072b3f3e60b2 - 0.0% (157 Bytes)

[#020] sha256:82823158b9f1c18358153ca1e094a048eda0931ccd9e5c7952a1d99bae4df92a - 8.13% (3.38 MB)

[#021] sha256:aa515bf848aeae963c6f6e4a39ec50ef5fb76e1fd1d191704ae346fc10415384 - 0.0% (580 Bytes)

[#022] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#023] sha256:96b61f778d1cf981ff0d22ee822ec0b09c09e486938e454850e7d1186c2e9867 - 0.0% (1.19 KB)

[#024] sha256:cd6240c77b5b8574ce9ea7fe9531eb9e91bdb265f2b0c1c2a6d2e92013902a55 - 0.0% (770 Bytes)

[#025] sha256:4f932ae4fd57992c7682f5cde463bbf1b871ee6d9874c14807b7549c8c9d6474 - 0.0% (770 Bytes)


History
2021-11-12 17:19:58 UTC

/bin/sh -c #(nop) ADD file:5a707b9d6cb5fff532e4c2141bc35707593f21da5528c9e71ae2ddb6ba4a4eb6 in /

2021-11-12 17:19:58 UTC

/bin/sh -c #(nop) CMD ["/bin/sh"]

2021-11-13 00:09:08 UTC

/bin/sh -c #(nop) ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2021-11-13 03:28:43 UTC

/bin/sh -c #(nop) ENV LANG=C.UTF-8

2021-11-13 04:09:48 UTC

/bin/sh -c set -eux; apk add --no-cache ca-certificates ;

2021-11-13 04:09:48 UTC

/bin/sh -c #(nop) ENV GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568

2021-11-13 04:09:49 UTC

/bin/sh -c #(nop) ENV PYTHON_VERSION=3.8.12

2021-11-13 04:20:44 UTC

/bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps gnupg tar xz && 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" && export GNUPGHOME="$(mktemp -d)" && 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 -xJC /usr/src/python --strip-components=1 -f python.tar.xz && rm python.tar.xz && apk add --no-cache --virtual .build-deps bluez-dev bzip2-dev coreutils dpkg-dev dpkg expat-dev findutils gcc gdbm-dev libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tcl-dev tk tk-dev util-linux-dev xz-dev zlib-dev && apk del --no-network .fetch-deps && 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 --with-system-ffi --without-ensurepip && make -j "$(nproc)" EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" LDFLAGS="-Wl,--strip-all" && make install && 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 '*.a' \) \) -o \( -type f -a -name 'wininst-*.exe' \) \) -exec rm -rf '{}' + && find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-cache --virtual .python-rundeps && apk del --no-network .build-deps && python3 --version

2021-11-13 04:20:45 UTC

/bin/sh -c cd /usr/local/bin && ln -s idle3 idle && ln -s pydoc3 pydoc && ln -s python3 python && ln -s python3-config python-config

2021-11-13 04:20:45 UTC

/bin/sh -c #(nop) ENV PYTHON_PIP_VERSION=21.2.4

2021-11-13 04:20:46 UTC

/bin/sh -c #(nop) ENV PYTHON_SETUPTOOLS_VERSION=57.5.0

2021-11-13 04:20:46 UTC

/bin/sh -c #(nop) ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/3cb8888cc2869620f57d5d2da64da38f516078c7/public/get-pip.py

2021-11-13 04:20:46 UTC

/bin/sh -c #(nop) ENV PYTHON_GET_PIP_SHA256=c518250e91a70d7b20cceb15272209a4ded2a0c263ae5776f129e0d9b5674309

2021-11-13 04:20:53 UTC

/bin/sh -c set -ex; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; python get-pip.py --disable-pip-version-check --no-cache-dir "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; pip --version; 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' \) \) \) -exec rm -rf '{}' +; rm -f get-pip.py

2021-11-13 04:20:54 UTC

/bin/sh -c #(nop) CMD ["python3"]

2023-08-28 00:18:09 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Sebastian Ramirez <tiangolo@gmail.com>

2023-08-28 00:18:09 UTC (buildkit.dockerfile.v0)

COPY install-nginx-alpine.sh / # buildkit

2023-08-28 00:18:14 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sh /install-nginx-alpine.sh # buildkit

2023-08-28 00:18:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2023-08-28 00:18:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2023-08-28 00:18:15 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache uwsgi-python3 # buildkit

2023-08-28 00:18:15 UTC (buildkit.dockerfile.v0)

COPY uwsgi.ini /etc/uwsgi/ # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache supervisor # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

COPY supervisord-alpine.ini /etc/supervisor.d/supervisord.ini # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

COPY stop-supervisor.sh /etc/supervisor/stop-supervisor.sh # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod +x /etc/supervisor/stop-supervisor.sh # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENV UWSGI_PLUGIN=python3

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENV UWSGI_INI=/app/uwsgi.ini

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENV UWSGI_CHEAPER=2

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENV UWSGI_PROCESSES=16

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENV NGINX_MAX_UPLOAD=0

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENV NGINX_WORKER_PROCESSES=1

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENV LISTEN_PORT=80

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENV ALPINEPYTHON=python3.8

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

COPY start.sh /start.sh # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod +x /start.sh # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

COPY entrypoint.sh /entrypoint.sh # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["sh" "/entrypoint.sh"]

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

COPY ./app /app # buildkit

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2023-08-28 00:18:16 UTC (buildkit.dockerfile.v0)

CMD ["/start.sh"]

2023-09-04 00:09:18 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Sebastian Ramirez <tiangolo@gmail.com>

2023-09-04 00:09:18 UTC (buildkit.dockerfile.v0)

COPY requirements.txt /tmp/requirements.txt # buildkit

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c pip install --no-cache-dir -r /tmp/requirements.txt # buildkit

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

ENV STATIC_URL=/static

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

ENV STATIC_PATH=/app/static

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

ENV STATIC_INDEX=0

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

COPY ./app /app # buildkit

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

ENV PYTHONPATH=/app

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mv /entrypoint.sh /uwsgi-nginx-entrypoint.sh # buildkit

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

COPY entrypoint.sh /entrypoint.sh # buildkit

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2023-09-04 00:09:22 UTC (buildkit.dockerfile.v0)

CMD ["/start.sh"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete