31 lines
1.3 KiB
Docker
31 lines
1.3 KiB
Docker
FROM 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 libc6 libevent-2.1-6 libsasl2-2 libsasl2-modules procps sasl2-bin sudo unzip
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "memcached" "1.6.1-0" --checksum 2a912daea05dd7f506501add436f115baefb97bb3a86336785cc4d44066a093a
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.11.0-3" --checksum c18bb8bcc95aa2494793ed5a506c4d03acc82c8c60ad061d5702e0b4048f0cb1
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN useradd -r -u 1001 -g root memcached
|
|
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.1-debian-10-r5" \
|
|
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" ]
|