FROM baseruntime/baseruntime:latest
# memcached image for OpenShift.
#
# Environment:
# * $CACHE_SIZE - Cache size for memcached
# Ports:
# * 11211
ENV NAME=memcached ARCH=x86_64
LABEL MAINTAINER "Petr Hracek" <phracek@redhat.com>
LABEL summary="High Performance, Distributed Memory Object Cache" \
name="$FGC/$NAME" \
version="0" \
release="1.$DISTTAG" \
architecture="$ARCH" \
com.redhat.component=$NAME \
usage="docker run -p 11211:11211 f26/memcached" \
help="Runs memcached, which listens on port 11211. No dependencies. See Help File below for more details." \
description="memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load." \
io.k8s.description="memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load." \
io.k8s.diplay-name="Memcached 1.4 " \
io.openshift.expose-services="11211:memcached" \
io.openshift.tags="memcached"
COPY repos/* /etc/yum.repos.d/
RUN microdnf --nodocs --enablerepo memcached install memcached && \
microdnf -y clean all
ADD files /files
ADD help.md README.md /
EXPOSE 11211
# memcached will be run under standard user on Fedora
USER 1000
CMD ["/files/memcached.sh"]