shelter/backstage (sha256:a50d848af98d6d126d46411cdc897b5345bf961704ce7557b79d2b524d218cea)
Published 2025-07-17 10:41:21 +00:00 by mariamelkamhawy
Installation
docker pull registry.arc-center.run/silverkeytech/shelter/backstage@sha256:a50d848af98d6d126d46411cdc897b5345bf961704ce7557b79d2b524d218ceasha256:a50d848af98d6d126d46411cdc897b5345bf961704ce7557b79d2b524d218ceaImage Layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1751241600' |
| ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates libc6 libgcc-s1 libicu72 libssl3 libstdc++6 tzdata && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c groupadd --gid=$APP_UID app && useradd --no-log-init --uid=$APP_UID --gid=$APP_UID --create-home app # buildkit |
| ENV DOTNET_VERSION=9.0.7 |
| COPY /dotnet /usr/share/dotnet # buildkit |
| RUN /bin/sh -c ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit |
| ENV ASPNET_VERSION=9.0.7 |
| COPY /dotnet /usr/share/dotnet # buildkit |
| ENV DOTNET_GENERATE_ASPNET_CERTIFICATE=false DOTNET_NOLOGO=true DOTNET_SDK_VERSION=9.0.302 DOTNET_USE_POLLING_FILE_WATCHER=true NUGET_XMLDOC_MODE=skip POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Debian-12 |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl git libatomic1 wget && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY /dotnet /usr/share/dotnet # buildkit |
| RUN /bin/sh -c dotnet help # buildkit |
| RUN /bin/sh -c powershell_version=7.5.2 && curl --fail --show-error --location --output PowerShell.Linux.x64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.x64.$powershell_version.nupkg && powershell_sha512='fb7ae1d7e6f046596159e5d2888c8868b7bc91664e9b2525a84399dcc2ebda755866d9c347a3aeec81b11ad52c83b02f58fab0571489663dcda25d1ba13de46f' && echo "$powershell_sha512 PowerShell.Linux.x64.$powershell_version.nupkg" | sha512sum -c - && mkdir --parents /usr/share/powershell && dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.x64 && dotnet nuget locals all --clear && rm PowerShell.Linux.x64.$powershell_version.nupkg && ln -s /usr/share/powershell/pwsh /usr/bin/pwsh && chmod 755 /usr/share/powershell/pwsh && find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm # buildkit |
| WORKDIR /app |
| COPY Shelter/Shelter.Core/*.csproj ./Shelter/Shelter.Core/ # buildkit |
| COPY Shelter/Shelter.Web/*.csproj ./Shelter/Shelter.Web/ # buildkit |
| RUN /bin/sh -c cd /app/Shelter/Shelter.Core && dotnet restore # buildkit |
| RUN /bin/sh -c cd /app/Shelter/Shelter.Web && dotnet restore # buildkit |
| COPY . ./ # buildkit |
| RUN /bin/sh -c cd /app/Shelter/Shelter.Web && dotnet publish -c Release -o out # buildkit |
| WORKDIR /app/Shelter/Shelter.Web/out |
| ENV ASPNETCORE_URLS=http://+:80 |
| ENTRYPOINT ["dotnet" "Shelter.Web.dll"] |