Namespace
tiangolo
Image / Tag
uwsgi-nginx-flask:python3.8-alpine-2024-01-08
Content Digest
sha256:6b52eeade5e683c8c466a9ec6b4038dbd39d54b7abe22c61a5da42ed5141a37c
Details
Created

2024-01-08 00:10:35 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.48% (2.69 MB)

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

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

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

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

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

[#006] sha256:2375cbc12a7498413c7eab9de24de2d7cb65437285a429a4c1430a41b92a13e2 - 15.32% (6.37 MB)

[#007] sha256:30880faffc95ee1fa02cfb109da6c10f28491d5abd6d52b1861a55b7424bec0a - 33.53% (13.9 MB)

[#008] sha256:90f2b7cdc9766a5142b9c199264318a857900d7349a5f4ef4ce1f654706a1b62 - 0.0% (381 Bytes)

[#009] sha256:224a7b58a196d9f781cbc0c20bcf27655e0096eefc0eed3f2d9a4edb5c1c2f0a - 4.77% (1.98 MB)

[#010] sha256:f7f0a3d4b55ea90ae0dc1d032e8b63d93e7a849ed6256e515ba7ba8742f4f1ff - 0.0% (440 Bytes)

[#011] sha256:cbeafd6cc6b15112f237736b59fb9f8cd171554e72ce965ab6d046e115d81470 - 0.0% (464 Bytes)

[#012] sha256:53b178e53840317dfdacb24bd99f1c9f31bb0f876e8c602c020b39c1885081e8 - 0.0% (460 Bytes)

[#013] sha256:21a4472ec858914568a8bf89d2f3bd75aa799972461b4251ea72fa037f53696b - 0.0% (323 Bytes)

[#014] sha256:696571cd043f62f08c7b18ad6d0062abe0afceb72f6d653f32ebf10ed889dc5f - 0.0% (322 Bytes)

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

[#016] sha256:931c9d220badf78a6bb18aeaeebc56332c5fb057411891323e73deab4e720f9f - 0.0% (1.15 KB)

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

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

[#019] sha256:f69e5490c87a90cbc9142c1aff56440530bf15ab482df9feac27668ebcd6a22e - 0.0% (159 Bytes)

[#020] sha256:270f2dcd9ecb540e87ec8e16bba178528605bf2a656f99457bf7a38a1f33796b - 8.05% (3.35 MB)

[#021] sha256:ddc542355d05a4c4603cc6dd90e980daa33ada157c1b984b1cc50d07ffb88d1a - 0.0% (581 Bytes)

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

[#023] sha256:221156e7cc88e7a939177a26a13f7b5919571b5d7eb821b5ed8dd18deb585c8a - 0.0% (1.18 KB)

[#024] sha256:90562e7ccaa2e97b03f1ea77172745b8ecb7028856f464e67153b02e05d9f217 - 0.0% (769 Bytes)

[#025] sha256:859efda3697594c9dd63f441c1923b12fa364fcce29713c329c56ca6e4aea94b - 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"]

2024-01-01 00:22:08 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:08 UTC (buildkit.dockerfile.v0)

COPY install-nginx-alpine.sh / # buildkit

2024-01-01 00:22:14 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2024-01-01 00:22:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2024-01-01 00:22:16 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:16 UTC (buildkit.dockerfile.v0)

COPY uwsgi.ini /etc/uwsgi/ # buildkit

2024-01-01 00:22:16 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:16 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:16 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

ENV UWSGI_PLUGIN=python3

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

ENV UWSGI_INI=/app/uwsgi.ini

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

ENV UWSGI_CHEAPER=2

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

ENV UWSGI_PROCESSES=16

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

ENV NGINX_MAX_UPLOAD=0

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

ENV NGINX_WORKER_PROCESSES=1

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

ENV LISTEN_PORT=80

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

ENV ALPINEPYTHON=python3.8

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

COPY start.sh /start.sh # buildkit

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

COPY entrypoint.sh /entrypoint.sh # buildkit

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

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

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

COPY ./app /app # buildkit

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2024-01-01 00:22:17 UTC (buildkit.dockerfile.v0)

CMD ["/start.sh"]

2024-01-08 00:10:32 UTC (buildkit.dockerfile.v0)

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

2024-01-08 00:10:32 UTC (buildkit.dockerfile.v0)

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

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

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

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

ENV STATIC_URL=/static

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

ENV STATIC_PATH=/app/static

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

ENV STATIC_INDEX=0

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

COPY ./app /app # buildkit

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

ENV PYTHONPATH=/app

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

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

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

COPY entrypoint.sh /entrypoint.sh # buildkit

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

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

2024-01-08 00:10:35 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2024-01-08 00:10:35 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