30 lines
1.2 KiB
Docker
30 lines
1.2 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 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.6-0" --checksum 15b1c136500b48450c07053972745188e9bfda7c8177d51e905d2a17a107e624
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-0" --checksum 582d501eeb6b338a24f417fededbf14295903d6be55c52d66c52e616c81bcd8c
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
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.6-debian-10-r26" \
|
|
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" ]
|