2022-04-28 14:35:52 +02:00
|
|
|
# SPDX-License-Identifier: MIT
|
2022-11-23 10:33:51 +01:00
|
|
|
#!BuildTag: opensuse/rmt-server:%%rmt_version%%
|
|
|
|
#!BuildTag: opensuse/rmt-server:%%rmt_version%%-%RELEASE%
|
2022-12-21 15:24:57 +01:00
|
|
|
#!BuildTag: opensuse/rmt-server:latest
|
2022-11-23 10:33:51 +01:00
|
|
|
|
2022-04-28 14:35:52 +02:00
|
|
|
FROM opensuse/tumbleweed:latest
|
|
|
|
|
2022-07-18 16:08:00 +02:00
|
|
|
MAINTAINER openSUSE (https://www.opensuse.org/)
|
2022-04-28 14:35:52 +02:00
|
|
|
|
|
|
|
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
2022-07-18 16:08:00 +02:00
|
|
|
# labelprefix=org.opensuse.application.rmt-server
|
2023-06-26 12:31:29 +02:00
|
|
|
LABEL org.opencontainers.image.title="openSUSE Tumbleweed SUSE RMT Server"
|
|
|
|
LABEL org.opencontainers.image.description="SUSE RMT Server container based on the openSUSE Tumbleweed Base Container Image."
|
2022-11-23 10:33:51 +01:00
|
|
|
LABEL org.opencontainers.image.version="%%rmt_version%%"
|
2022-07-18 16:08:00 +02:00
|
|
|
LABEL org.opencontainers.image.url="https://www.opensuse.org"
|
2022-04-28 14:35:52 +02:00
|
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
2022-07-18 16:08:00 +02:00
|
|
|
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
2023-03-03 08:53:04 +01:00
|
|
|
LABEL org.opencontainers.image.source="%SOURCEURL%"
|
2022-11-23 10:33:51 +01:00
|
|
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/rmt-server:%%rmt_version%%-%RELEASE%"
|
2022-04-28 14:35:52 +02:00
|
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
2023-06-01 17:36:28 +02:00
|
|
|
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime"
|
|
|
|
LABEL org.opensuse.release-stage="released"
|
2022-07-18 16:08:00 +02:00
|
|
|
|
2022-04-28 14:35:52 +02:00
|
|
|
# endlabelprefix
|
|
|
|
|
2022-05-04 09:56:59 +02:00
|
|
|
RUN set -euo pipefail; zypper -n in --no-recommends rmt-server catatonit; zypper -n clean; rm -rf /var/log/*
|
2022-04-28 14:35:52 +02:00
|
|
|
ENV RAILS_ENV="production"
|
|
|
|
ENV LANG="en"
|
2022-11-23 10:33:51 +01:00
|
|
|
|
2022-04-28 14:35:52 +02:00
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
|
|
CMD ["/usr/share/rmt/bin/rails", "server", "-e", "production"]
|
|
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
2022-05-04 09:56:59 +02:00
|
|
|
RUN set -euo pipefail; chmod +x /usr/local/bin/entrypoint.sh
|