mirror of
https://github.com/bitnami/containers.git
synced 2026-03-07 01:07:20 +08:00
3.9.13-debian-11-r0 release
This commit is contained in:
committed by
Bitnami Containers
parent
75de6db6fa
commit
0a9b976833
28
bitnami/python/3.9/debian-11/Dockerfile
Normal file
28
bitnami/python/3.9/debian-11/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM docker.io/bitnami/minideb:bullseye
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
ENV OS_ARCH="amd64" \
|
||||
OS_FLAVOUR="debian-11" \
|
||||
OS_NAME="linux"
|
||||
|
||||
COPY prebuildfs /
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages build-essential ca-certificates curl git gzip libbz2-1.0 libc6 libcom-err2 libcrypt1 libffi7 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblzma5 libncursesw6 libnsl2 libreadline8 libsqlite3-0 libsqlite3-dev libssl-dev libssl1.1 libtinfo6 libtirpc3 pkg-config procps tar unzip wget zlib1g
|
||||
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/python-3.9.13-0-linux-amd64-debian-11.tar.gz && \
|
||||
echo "30a95e9a200ac61754319a6ef764709a3c2e08f6fe21433bf935038f7308a7fb /tmp/bitnami/pkg/cache/python-3.9.13-0-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
|
||||
tar -zxf /tmp/bitnami/pkg/cache/python-3.9.13-0-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||
rm -rf /tmp/bitnami/pkg/cache/python-3.9.13-0-linux-amd64-debian-11.tar.gz
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
||||
RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \
|
||||
sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS 0/' /etc/login.defs && \
|
||||
sed -i 's/sha512/sha512 minlen=8/' /etc/pam.d/common-password
|
||||
|
||||
ENV APP_VERSION="3.9.13" \
|
||||
BITNAMI_APP_NAME="python" \
|
||||
PATH="/opt/bitnami/python/bin:$PATH"
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
WORKDIR /app
|
||||
CMD [ "python" ]
|
||||
Reference in New Issue
Block a user