Skip to content

Commit

Permalink
cartservice: alpine --> noble-chiseled (#2568)
Browse files Browse the repository at this point in the history
* noble-chiseled

* Update Dockerfile - fix noble-chiseled digest
  • Loading branch information
mathieu-benoit authored May 30, 2024
1 parent 2ab6aa6 commit 5dc6736
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cartservice/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
# limitations under the License.

# https://mcr.microsoft.com/product/dotnet/sdk
FROM mcr.microsoft.com/dotnet/sdk:8.0.300@sha256:935902ef9eee58a9226b906e3d6ff1b2abaca240c9d5b4ac8dca9943b26c8f33 as builder
FROM mcr.microsoft.com/dotnet/sdk:8.0.301-noble@sha256:e6982f8da3f29407d73d737af120bff652658c6c985ccf63e62f12ce49127cc7 as builder
WORKDIR /app
COPY cartservice.csproj .
RUN dotnet restore cartservice.csproj \
-r linux-musl-x64
-r linux-x64
COPY . .
RUN dotnet publish cartservice.csproj \
-p:PublishSingleFile=true \
-r linux-musl-x64 \
-r linux-x64 \
--self-contained true \
-p:PublishTrimmed=True \
-p:TrimMode=Full \
Expand All @@ -30,7 +30,7 @@ RUN dotnet publish cartservice.csproj \
--no-restore

# https://mcr.microsoft.com/product/dotnet/runtime-deps
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0.5-alpine3.18-amd64@sha256:70fe5d6b27bc6a722d24a38865c6763b5bf6a368a8c320114ac4924b8d442378
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0.6-noble-chiseled@sha256:1745aa8e322b6965ea3ec8524b9f9eb128f146c804e32b1fc2272ed07ada4c8e

WORKDIR /app
COPY --from=builder /cartservice .
Expand Down

0 comments on commit 5dc6736

Please sign in to comment.