mirror of
https://github.com/bitnami/containers.git
synced 2026-03-12 14:57:54 +08:00
24 lines
1.1 KiB
Docker
24 lines
1.1 KiB
Docker
FROM registry.rhc4tp.openshift.com/bitnami/rhel-extras-7:latest
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/oauth2-proxy-3.1.0-0-linux-x86_64-rhel-7.tar.gz && \
|
|
echo "cc25a83af8c890c821507fd3738ba3acdb2c9ea859ea021600b6fd6fb59094c7 /tmp/bitnami/pkg/cache/oauth2-proxy-3.1.0-0-linux-x86_64-rhel-7.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/oauth2-proxy-3.1.0-0-linux-x86_64-rhel-7.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/oauth2-proxy-3.1.0-0-linux-x86_64-rhel-7.tar.gz
|
|
|
|
ENV BITNAMI_APP_NAME="oauth2-proxy" \
|
|
BITNAMI_IMAGE_VERSION="3.1.0-rhel-7-r30" \
|
|
BITNAMI_PKG_CHMOD="-R g+rwX" \
|
|
HOME="/" \
|
|
NAMI_PREFIX="/.nami" \
|
|
PATH="/opt/bitnami/oauth2-proxy/bin:$PATH"
|
|
|
|
EXPOSE 8080 4180
|
|
|
|
WORKDIR /opt/bitnami/oauth2-proxy
|
|
USER 1001
|
|
ENTRYPOINT [ "oauth2_proxy" ]
|
|
CMD [ "--upstream=http://0.0.0.0:8080/", "--http-address=0.0.0.0:4180" ]
|