File Dockerfile of Package dotnet-runtime-3.1.21022
# Define the names/tags of the container
#!BuildTag: suse/dotnet-aspnet:3.1 suse/dotnet-aspnet:3.1.202
FROM suse/sle15:15.3
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.example
PREFIXEDLABEL org.opencontainers.image.title=".NET 3.1 container"
PREFIXEDLABEL org.opencontainers.image.description="This contains the .NET 3.1 SDK"
PREFIXEDLABEL org.opensuse.reference="registry.suse.com/suse/dotnet-aspnet:3.1.202"
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"
# The MS GPG keys
COPY microsoft.asc /tmp
# Copy the RPMs previously downloaded via the _service to the container image
COPY aspnetcore-targeting-pack-3.1.10.rpm /tmp
COPY aspnetcore-runtime-3.1.18-x64.rpm /tmp
COPY dotnet-apphost-pack-3.1.18-x64.rpm /tmp
COPY dotnet-runtime-3.1.18-x64.rpm /tmp
COPY dotnet-targeting-pack-3.1.0-x64.rpm /tmp
COPY netstandard-targeting-pack-2.1.0-x64.rpm /tmp
COPY dotnet-hostfxr-3.1.18-x64.rpm /tmp
COPY dotnet-runtime-deps-3.1.18-sles.12-x64.rpm /tmp
COPY dotnet-host-3.1.18-x64.rpm /tmp
# Workaround for https://github.com/openSUSE/obs-build/issues/487
RUN zypper --non-interactive install --no-recommends sles-release
# Importing MS GPG keys
RUN rpm --import /tmp/microsoft.asc
# Use the package for ICU offered by SLES
RUN zypper --non-interactive install --no-recommends libicu vim
# All .NET required packages for the SDK and Runtime
RUN zypper --non-interactive install --no-recommends /tmp/dotnet-targeting-pack-3.1.0-x64.rpm \
/tmp/dotnet-host-3.1.18-x64.rpm \
/tmp/dotnet-hostfxr-3.1.18-x64.rpm \
/tmp/dotnet-runtime-deps-3.1.18-sles.12-x64.rpm \
/tmp/dotnet-runtime-3.1.18-x64.rpm \
/tmp/dotnet-apphost-pack-3.1.18-x64.rpm \
/tmp/aspnetcore-targeting-pack-3.1.10.rpm \
/tmp/aspnetcore-runtime-3.1.18-x64.rpm \
/tmp/netstandard-targeting-pack-2.1.0-x64.rpm
RUN rm -rf /tmp/* && zypper clean