reserve/backstage-branch (sha256:3ffc89dfda7fa60dc2dcba98adccc9780f9373f165ce14816600451b827431e8)
Published 2025-07-17 11:45:36 +00:00 by mariamelkamhawy
Installation
docker pull registry.arc-center.run/silverkeytech/reserve/backstage-branch@sha256:3ffc89dfda7fa60dc2dcba98adccc9780f9373f165ce14816600451b827431e8sha256:3ffc89dfda7fa60dc2dcba98adccc9780f9373f165ce14816600451b827431e8Image Layers
| # debian.sh --arch 'arm64' 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 zlib1g && 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=8.0.18 |
| COPY /dotnet /usr/share/dotnet # buildkit |
| RUN /bin/sh -c ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit |
| ENV ASPNET_VERSION=8.0.18 |
| COPY /dotnet /usr/share/dotnet # buildkit |
| ENV DOTNET_GENERATE_ASPNET_CERTIFICATE=false DOTNET_NOLOGO=true DOTNET_SDK_VERSION=8.0.412 DOTNET_USE_POLLING_FILE_WATCHER=true NUGET_XMLDOC_MODE=skip POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Debian-12-arm64 |
| 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.4.11 && curl --fail --show-error --location --output PowerShell.Linux.arm64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.arm64.$powershell_version.nupkg && powershell_sha512='8c4d0536ddefa0ac2b61dbed2926cfd6860e43864b2d5563a0cd0819b8203eba44de1b0693d4648ec5fdc23f3a6a6ce254594444847daccf19e7075ee8af6aa3' && echo "$powershell_sha512 PowerShell.Linux.arm64.$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.arm64 && dotnet nuget locals all --clear && rm PowerShell.Linux.arm64.$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 Reserve.Core/*.csproj ./Reserve/Reserve.Core/ # buildkit |
| COPY Reserve/*.csproj ./Reserve/Reserve/ # buildkit |
| RUN /bin/sh -c cd /app/Reserve/Reserve.Core && dotnet restore # buildkit |
| RUN /bin/sh -c cd /app/Reserve/Reserve && dotnet restore # buildkit |
| COPY . ./Reserve # buildkit |
| RUN /bin/sh -c cd /app/Reserve/Reserve && dotnet publish -c Release -o out # buildkit |
| WORKDIR /app/Reserve/Reserve/out |
| ENV ASPNETCORE_URLS=http://+:80 |
| ENV ASPNETCORE_ENVIRONMENT=deployment_prod |
| ENTRYPOINT ["dotnet" "Reserve.dll"] |