Skip to content

Commit c726a05

Browse files
committed
Update: Dotnet sample app documentation with correct Dockerfile reference
1 parent c3fc0f3 commit c726a05

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/guides/dotnet/develop.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ services:
256256
secrets:
257257
- db-password
258258
volumes:
259-
- db-data:/var/lib/postgresql/data
259+
- db-data:/var/lib/postgresql
260260
environment:
261261
- POSTGRES_DB=example
262262
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
@@ -307,19 +307,19 @@ The following is the updated Dockerfile.
307307
```Dockerfile {hl_lines="10-13"}
308308
# syntax=docker/dockerfile:1
309309
310-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
310+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
311311
ARG TARGETARCH
312312
COPY . /source
313313
WORKDIR /source/src
314314
RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \
315315
dotnet publish -a ${TARGETARCH/amd64/x64} --use-current-runtime --self-contained false -o /app
316316
317-
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS development
317+
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS development
318318
COPY . /source
319319
WORKDIR /source/src
320320
CMD dotnet run --no-launch-profile
321321
322-
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS final
322+
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS final
323323
WORKDIR /app
324324
COPY --from=build /app .
325325
ARG UID=10001
@@ -361,7 +361,7 @@ services:
361361
secrets:
362362
- db-password
363363
volumes:
364-
- db-data:/var/lib/postgresql/data
364+
- db-data:/var/lib/postgresql
365365
environment:
366366
- POSTGRES_DB=example
367367
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password

0 commit comments

Comments
 (0)