File Dockerfile of Package sv-glab-notifier

# Define the names/tags of the container
#!BuildTag: suse-edge/glab-notifier:latest suse-edge/glab-notifier:0.1 suse-edge/glab-notifier:0.1.1

FROM registry.suse.com/bci/bci-base:15.7 as build

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.example
PREFIXEDLABEL org.opencontainers.image.title="glab-notifier"
PREFIXEDLABEL org.opencontainers.image.description="This contains gitlab-notifier"
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"

# Workaround for https://github.com/openSUSE/obs-build/issues/487
RUN zypper --non-interactive in go

# Fill the image with content

# Base image for building
WORKDIR /workspace
RUN zypper in go
RUN git clone gitlab@gitlab.suse.de:edge-engineering/gitlab-notifier.git
COPY . .
RUN make clean safebuild

# Final minimal image
FROM registry.suse.com/bci/bci-base:15.7 AS final

COPY --from=builder /workspace/gitlab-notifier /usr/local/bin/gitlab-notifier

ENTRYPOINT ["/usr/local/bin/gitlab-notifier"]
openSUSE Build Service is sponsored by