memcached Official Package
Updated about 2024-11-07 23:34:20 -08:00
Installation
docker pull pkg.ci/memcached@sha256:3dc5f60d7a9b63f92ee56aa7735367f84056e9bf2705852288ab361c7f1dbea1
sha256:3dc5f60d7a9b63f92ee56aa7735367f84056e9bf2705852288ab361c7f1dbea1
Image Layers
ADD file:6c11edc513b28b5a4034ee9c0d4cdcf019a82635ebb8a9e02732800fa457f683 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"] |