File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# TARGETARCH and TARGETOS are set automatically when --platform is provided.
2- FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
2+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0@sha256:8ab06772f296ed5f541350334f15d9e2ce84ad4b3ce70c90f2e43db2752c30f6 AS build-env
33ARG TARGETOS
44LABEL stage=build-env
55WORKDIR /source
@@ -14,8 +14,8 @@ COPY Directory.Packages.props .
1414RUN dotnet publish src/OrchardCore.Commerce.Web/OrchardCore.Commerce.Web.csproj -c Release -o /app --framework net8.0 /p:RunAnalyzers=false
1515
1616# build runtime image
17- FROM mcr.microsoft.com/dotnet/aspnet:8.0-nanoserver-1809 AS build_windows
18- FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS build_linux
17+ FROM mcr.microsoft.com/dotnet/aspnet:8.0-nanoserver-1809@sha256:3e02871ca45856ebfc43876a706952cdd755b795d0bc8790f317f192dd770843 AS build_windows
18+ FROM mcr.microsoft.com/dotnet/aspnet:8.0@sha256:6159cf66274cf52730d7a0c7bb05cf0af94b79370176886ac58286ab6cbb7faf AS build_linux
1919FROM build_${TARGETOS} AS aspnet
2020
2121EXPOSE 80
Original file line number Diff line number Diff line change 11# This Docker file is intended for the CI
22# A prerequisite is a published application in the .build/release
3- FROM --platform=$BUILDPLATFORM golang:alpine AS build
3+ FROM --platform=$BUILDPLATFORM golang:alpine@sha256:7772cb5322baa875edd74705556d08f0eeca7b9c4b5367754ce3f2f00041ccee AS build
44ARG TARGETOS
55
6- FROM mcr.microsoft.com/dotnet/aspnet:8.0-nanoserver-1809 AS build_windows
7- FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS build_linux
6+ FROM mcr.microsoft.com/dotnet/aspnet:8.0-nanoserver-1809@sha256:3e02871ca45856ebfc43876a706952cdd755b795d0bc8790f317f192dd770843 AS build_windows
7+ FROM mcr.microsoft.com/dotnet/aspnet:8.0@sha256:6159cf66274cf52730d7a0c7bb05cf0af94b79370176886ac58286ab6cbb7faf AS build_linux
88FROM build_${TARGETOS} AS aspnet
99
1010EXPOSE 80
You can’t perform that action at this time.
0 commit comments