File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
311311ARG TARGETARCH
312312COPY . /source
313313WORKDIR /source/src
314314RUN --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
318318COPY . /source
319319WORKDIR /source/src
320320CMD 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
323323WORKDIR /app
324324COPY --from=build /app .
325325ARG 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
You can’t perform that action at this time.
0 commit comments