2022-02-01 15:10:56 +01:00
|
|
|
# Defines the tag for OBS and build script builds:
|
|
|
|
#!BuildTag: opensuse/memcached:latest
|
|
|
|
#!BuildTag: opensuse/memcached:%%MINOR%%
|
|
|
|
#!BuildTag: opensuse/memcached:%%PKG_VERSION%%
|
|
|
|
#!BuildTag: opensuse/memcached:%%PKG_VERSION%%-%RELEASE%
|
|
|
|
FROM opensuse/tumbleweed
|
|
|
|
# labelprefix=org.opensuse.memcached
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.title="memcached"
|
2022-02-09 10:58:35 +01:00
|
|
|
PREFIXEDLABEL org.opencontainers.image.description="A high-performance, distributed memory object caching system version %%PKG_VERSION%%"
|
|
|
|
PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/opensuse/memcached:%%PKG_VERSION%%-%RELEASE%"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%-%RELEASE%"
|
2022-02-01 15:10:56 +01:00
|
|
|
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
|
|
# Fill the image with content and clean the cache(s)
|
|
|
|
RUN zypper --non-interactive in memcached && zypper clean -a
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
|
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
|
|
|
USER memcached
|
|
|
|
EXPOSE 11211
|
|
|
|
CMD ["memcached"]
|