Created
September 26, 2024 21:05
-
-
Save blues-man/4464e1bb17c0ed63e2f7839f7673280a to your computer and use it in GitHub Desktop.
Containerfile for UBI9 with .NET 8.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM registry.access.redhat.com/ubi9-minimal:9.4 | |
LABEL org.opencontainers.image.authors="[email protected]" | |
USER 0 | |
RUN useradd dotnet -m -d /home/dotnet -s /sbin/nologin \ | |
&& mkdir -p /app \ | |
&& chown -R dotnet /app \ | |
&& microdnf update -y \ | |
&& microdnf install -y dotnet-sdk-8.0 \ | |
&& microdnf clean all \ | |
&& rm -rf /var/cache/dnf | |
USER dotnet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment