go1.16-devel-container/Dockerfile

23 lines
919 B
Docker

# Defines the tag for OBS and build script builds:
#!BuildTag: opensuse/go-devel:1.16
#!BuildTag: opensuse/go-devel:%%PKG_VERSION%%
#!BuildTag: opensuse/go-devel:%%PKG_VERSION%%.%RELEASE%
FROM opensuse/tumbleweed
# labelprefix=org.opensuse.java-devel
PREFIXEDLABEL org.opencontainers.image.title="Go 1.16 development container"
PREFIXEDLABEL org.opencontainers.image.description="Environment for Go 1.16 development"
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"
PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%"
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
PREFIXEDLABEL org.opensuse.reference="opensuse/go-devel:%%PKG_VERSION%%.%RELEASE%"
# Work around https://github.com/openSUSE/obs-build/issues/487
RUN zypper install -y openSUSE-release-appliance-docker
# Development packages
RUN zypper install -y --no-recommends go1.16 git-core
ENTRYPOINT [ "/bin/bash" ]