19 lines
1.1 KiB
Docker
19 lines
1.1 KiB
Docker
FROM bitnami/oraclelinux-runtimes:7-r546
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages bzip2-libs ca-certificates curl gcc gcc-c++ git glibc keyutils-libs krb5-libs libcom_err libffi libselinux libtool make ncurses-libs nss-softokn-freebl openssl-libs patch pcre pkgconfig readline sqlite unzip wget xz-libs zlib
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/python-3.6.10-0-linux-x86_64-ol-7.tar.gz && \
|
|
echo "5a8e49832c587612e6b4afa4dfe4708dc2153263ec594006eb7972c3352773b3 /tmp/bitnami/pkg/cache/python-3.6.10-0-linux-x86_64-ol-7.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/python-3.6.10-0-linux-x86_64-ol-7.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/python-3.6.10-0-linux-x86_64-ol-7.tar.gz
|
|
|
|
ENV BITNAMI_APP_NAME="python" \
|
|
BITNAMI_IMAGE_VERSION="3.6.10-ol-7-r7" \
|
|
PATH="/opt/bitnami/python/bin:$PATH"
|
|
|
|
EXPOSE 8000
|
|
|
|
WORKDIR /app
|
|
CMD [ "python" ]
|