memcached Official Package

Updated about 2024-11-07 23:34:15 -08:00

Installation

docker pull pkg.ci/memcached@sha256:b0b2b8f4ad5ea1452f4e22430aae7b783744883e5135bce0c70f1818c09db6a4
sha256:b0b2b8f4ad5ea1452f4e22430aae7b783744883e5135bce0c70f1818c09db6a4

Image Layers

ADD file:9e1e244025374c1ce772075845b1331852635a8eb7d29e206c37cd9de6ad8617 in /
CMD ["bash"]
RUN /bin/sh -c set -eux; groupadd --system --gid 11211 memcache; useradd --system --gid memcache --uid 11211 memcache # buildkit
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libsasl2-modules ; rm -rf /var/lib/apt/lists/* # buildkit
ENV MEMCACHED_VERSION=1.6.32
ENV MEMCACHED_URL=https://memcached.org/files/memcached-1.6.32.tar.gz
ENV MEMCACHED_SHA1=a6377de830d15e17b769184df6ad20766c2279d9
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates dpkg-dev gcc libc6-dev libevent-dev libio-socket-ssl-perl libsasl2-dev libssl-dev make perl wget ; rm -rf /var/lib/apt/lists/*; wget -O memcached.tar.gz "$MEMCACHED_URL"; echo "$MEMCACHED_SHA1 memcached.tar.gz" | sha1sum -c -; mkdir -p /usr/src/memcached; tar -xzf memcached.tar.gz -C /usr/src/memcached --strip-components=1; rm memcached.tar.gz; cd /usr/src/memcached; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-extstore --enable-sasl --enable-sasl-pwdb --enable-tls ; nproc="$(nproc)"; make -j "$nproc"; sed -i.bak 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf; make test PARALLEL="$nproc"; mv /etc/ssl/openssl.cnf.bak /etc/ssl/openssl.cnf; make install; cd /; rm -rf /usr/src/memcached; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; memcached -V # buildkit
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
ENTRYPOINT ["docker-entrypoint.sh"]
USER memcache
EXPOSE map[11211/tcp:{}]
CMD ["memcached"]
Details
Container
2024-11-07 23:34:15 -08:00
0
OCI / Docker
linux/386
32 MiB
Versions (1) View all
latest 2024-11-07