38 lines
1.5 KiB
Docker
38 lines
1.5 KiB
Docker
# SPDX-License-Identifier: MIT
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#!UseOBSRepositories
|
|
|
|
#!BuildTag: opensuse/bci/golang-extended:0.1-1.%RELEASE%
|
|
#!BuildTag: opensuse/bci/golang-extended:0.1
|
|
#!BuildTag: opensuse/bci/golang-extended:latest
|
|
|
|
FROM opensuse/bci/golang:latest
|
|
|
|
RUN set -euo pipefail; \
|
|
zypper -n install --no-recommends golang-uber-mockgen
|
|
RUN set -euo pipefail; zypper -n clean -a; \
|
|
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; rm -f {/target,}/etc/shadow-
|
|
|
|
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
|
# labelprefix=org.opensuse.bci.golang
|
|
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Go extended development"
|
|
LABEL org.opencontainers.image.description="Go extended with more development tools container based on the non-extended one."
|
|
LABEL org.opencontainers.image.version="0.1"
|
|
LABEL org.opencontainers.image.url="https://www.opensuse.org"
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
|
LABEL org.opencontainers.image.source="%SOURCEURL%"
|
|
LABEL org.opencontainers.image.ref.name="0.1-1.%RELEASE%"
|
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/golang-extended:0.1-1.%RELEASE%"
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
|
# endlabelprefix
|
|
|