forked from pool/tomcat-image
d76edbccc7
Initial tomcat-image release OBS-URL: https://build.opensuse.org/request/show/898290 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/tomcat-image?expand=0&rev=1
25 lines
935 B
Docker
25 lines
935 B
Docker
# Defines the tag for OBS and build script builds:
|
|
#!BuildTag: opensuse/tomcat:latest
|
|
#!BuildTag: opensuse/tomcat:%%MINOR%%
|
|
#!BuildTag: opensuse/tomcat:%%PKG_VERSION%%
|
|
#!BuildTag: opensuse/tomcat:%%PKG_VERSION%%-%RELEASE%
|
|
|
|
FROM opensuse/tumbleweed
|
|
|
|
# labelprefix=org.opensuse.tomcat
|
|
PREFIXEDLABEL org.opencontainers.image.title="Apache tomcat container"
|
|
PREFIXEDLABEL org.opencontainers.image.description="Apache tomcat container"
|
|
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%-%RELEASE%"
|
|
PREFIXEDLABEL org.opencontainers.image.vendor="openSUSE Project"
|
|
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
|
|
PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/opensuse/tomcat:%%PKG_VERSION%%-%RELEASE%"
|
|
|
|
RUN zypper install -y --no-recommends tomcat && \
|
|
zypper clean
|
|
|
|
USER tomcat
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/usr/libexec/tomcat/server", "start"]
|