35 lines
1.3 KiB
Docker
35 lines
1.3 KiB
Docker
FROM oraclelinux:7-slim
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
|
HOME="/" \
|
|
OS_ARCH="x86_64" \
|
|
OS_FLAVOUR="ol-7" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl glibc gzip hostname libaio-devel procps-ng sudo tar unzip which
|
|
RUN . ./libcomponent.sh && component_unpack "redis" "5.0.7-0" --checksum 21935196027fe2f029041b772546a328a1d5f0d6e7f7f3679f3c2008a8958957
|
|
RUN yum upgrade -y && \
|
|
rm -r /var/cache/yum
|
|
RUN /build/install-gosu.sh
|
|
RUN curl --silent -L https://github.com/bitnami/wait-for-port/releases/download/v1.0/wait-for-port.zip > /tmp/wait-for-port.zip && \
|
|
echo "8d26181f4629211b70db4f96236616056b1ed8e5920d8023f7c883071e76c1ed /tmp/wait-for-port.zip" | sha256sum --check && \
|
|
unzip -q -d /usr/local/bin -o /tmp/wait-for-port.zip wait-for-port && \
|
|
mkdir -p /opt/bitnami/licenses && \
|
|
curl --silent -L https://raw.githubusercontent.com/bitnami/wait-for-port/master/COPYING > /opt/bitnami/licenses/wait-for-port-1.0.txt
|
|
|
|
COPY rootfs /
|
|
RUN /postunpack.sh
|
|
ENV BITNAMI_APP_NAME="redis" \
|
|
BITNAMI_IMAGE_VERSION="5.0.7-ol-7-r93" \
|
|
NAMI_PREFIX="/.nami" \
|
|
PATH="/opt/bitnami/redis/bin:$PATH"
|
|
|
|
EXPOSE 6379
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
|
CMD [ "/run.sh" ]
|