forked from pool/opensuse-memcached-image
Fabian Vogt
5dcd8c7f12
- Add missing % around some %%PKG_VERSION%% uses - Use - between version and release consistently - Add org.opencontainers.image.version label OBS-URL: https://build.opensuse.org/request/show/952895 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/opensuse-memcached-image?expand=0&rev=3
22 lines
1.1 KiB
Docker
22 lines
1.1 KiB
Docker
# 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"
|
|
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%"
|
|
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"]
|