Skip to content

Commit b96268f

Browse files
committed
Update examples to reflect new Docker guidance
1 parent e57cc9a commit b96268f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

example/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# and defra-dotnetcore-development tagged with a version.
33

44
# Allow parent image version to be set at build time
5-
ARG PARENT_VERSION=1.9.1-dotnet8.0
5+
ARG PARENT_VERSION=1.10.1-dotnet8.0
66

77
# Development stage, used the build the app and provide testing tools
88
FROM defra-dotnetcore-development:$PARENT_VERSION AS development
@@ -54,7 +54,7 @@ ENV ASPNETCORE_URLS=http://*:${PORT}
5454
EXPOSE ${PORT}
5555

5656
# Copy the compiled app from the development build stage
57-
COPY --from=development /home/dotnet/out/ ./
57+
COPY --from=development --chown=root:root /home/dotnet/out/ ./ && chmod -R a-w /home/dotnet
5858

5959
# Set the default command for production to run the compiled app.
6060
CMD ["dotnet", "exampleService.dll"]

0 commit comments

Comments
 (0)