31 lines
1.3 KiB
Docker
31 lines
1.3 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-10" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libc6 libevent-2.1-6 libsasl2-2 libsasl2-modules procps sasl2-bin tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "memcached" "1.6.8-0" --checksum 922c3d0c8f3dd9e9bb0a2654ab46f4788fc31fa65c0b4049a09fb93118ca3a66
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-2" --checksum 4d858ac600c38af8de454c27b7f65c0074ec3069880cb16d259a6e40a46bbc50
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
RUN ln -s /opt/bitnami/scripts/memcached/entrypoint.sh /entrypoint.sh
|
|
RUN ln -s /opt/bitnami/scripts/memcached/run.sh /run.sh
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/memcached/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="memcached" \
|
|
BITNAMI_IMAGE_VERSION="1.6.8-debian-10-r22" \
|
|
PATH="/opt/bitnami/memcached/bin:/opt/bitnami/common/bin:$PATH"
|
|
|
|
EXPOSE 11211
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/memcached/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/memcached/run.sh" ]
|