forked from pool/rmt-server-image
Dan Čermák
84ef167fd4
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=1
34 lines
1.4 KiB
Docker
34 lines
1.4 KiB
Docker
# SPDX-License-Identifier: MIT
|
|
#!BuildTag: suse/rmt-server:2.7
|
|
#!BuildTag: suse/rmt-server:2.7-%RELEASE%
|
|
FROM opensuse/tumbleweed:latest
|
|
|
|
MAINTAINER SUSE LLC (https://www.suse.com/)
|
|
|
|
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
|
# labelprefix=com.suse.application.rmt-server
|
|
LABEL org.opencontainers.image.title="SLE RMT Server Container Image"
|
|
LABEL org.opencontainers.image.description="SUSE RMT Server based on the SLE Base Container Image."
|
|
LABEL org.opencontainers.image.version="2.7"
|
|
LABEL org.opencontainers.image.url="https://www.suse.com/products/server/"
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
LABEL org.opencontainers.image.vendor="SUSE LLC"
|
|
LABEL org.opensuse.reference="registry.suse.com/suse/rmt-server:2.7-%RELEASE%"
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
|
LABEL com.suse.supportlevel="techpreview"
|
|
LABEL com.suse.eula="sle-bci"
|
|
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle"
|
|
LABEL com.suse.image-type="application"
|
|
LABEL com.suse.release-stage="beta"
|
|
# endlabelprefix
|
|
|
|
|
|
RUN set -euo pipefail && zypper -n in --no-recommends rmt-server catatonit && zypper -n clean && rm -rf /var/log/*
|
|
|
|
ENV RAILS_ENV="production"
|
|
ENV LANG="en"
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
CMD ["/usr/share/rmt/bin/rails", "server", "-e", "production"]
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|