mirror of
https://github.com/bitnami/containers.git
synced 2026-02-19 14:08:07 +08:00
2.7.15-debian-9-r0-prod release
This commit is contained in:
20
bitnami/python/2-prod/debian-9/Dockerfile
Normal file
20
bitnami/python/2-prod/debian-9/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM bitnami/python:2.7.15-debian-9-r194 as development
|
||||
|
||||
######
|
||||
|
||||
FROM bitnami/minideb:stretch
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages libbz2-1.0 libc6 libncurses5 libreadline7 libsqlite3-0 libssl1.1 libtinfo5 zlib1g
|
||||
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="2.7.15-debian-9-r0-prod" \
|
||||
PATH="/opt/bitnami/python/bin:$PATH"
|
||||
|
||||
CMD [ "python" ]
|
||||
10
bitnami/python/2-prod/debian-9/docker-compose.yml
Normal file
10
bitnami/python/2-prod/debian-9/docker-compose.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
python:
|
||||
tty: true # Enables debugging capabilities when attached to this container.
|
||||
image: 'bitnami/python:2-prod'
|
||||
ports:
|
||||
- 8000:8000
|
||||
volumes:
|
||||
- .:/app
|
||||
Reference in New Issue
Block a user