3.7.6-debian-10-r0-prod release
This commit is contained in:
parent
52d62d6e74
commit
286d492338
|
|
@ -0,0 +1,22 @@
|
|||
FROM bitnami/python:3.7.6-debian-10-r0 as development
|
||||
|
||||
######
|
||||
|
||||
FROM bitnami/minideb:buster
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages ca-certificates curl libbz2-1.0 libc6 libffi6 libncursesw6 libreadline7 libsqlite3-0 libssl1.1 libtinfo6 procps sudo unzip zlib1g
|
||||
RUN apt-get update && apt-get upgrade && \
|
||||
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
|
||||
|
||||
COPY --from=development /opt/bitnami/python /opt/bitnami/python
|
||||
|
||||
ENV BITNAMI_APP_NAME="python" \
|
||||
BITNAMI_IMAGE_VERSION="3.7.6-debian-10-r0-prod" \
|
||||
PATH="/opt/bitnami/python/bin:$PATH"
|
||||
|
||||
CMD [ "python" ]
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
version: '2'
|
||||
|
||||
services:
|
||||
python:
|
||||
tty: true # Enables debugging capabilities when attached to this container.
|
||||
image: 'bitnami/python:3.7-prod'
|
||||
ports:
|
||||
- 8000:8000
|
||||
volumes:
|
||||
- .:/app
|
||||
Loading…
Reference in New Issue