We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e57cc9a commit b96268fCopy full SHA for b96268f
1 file changed
example/Dockerfile
@@ -2,7 +2,7 @@
2
# and defra-dotnetcore-development tagged with a version.
3
4
# Allow parent image version to be set at build time
5
-ARG PARENT_VERSION=1.9.1-dotnet8.0
+ARG PARENT_VERSION=1.10.1-dotnet8.0
6
7
# Development stage, used the build the app and provide testing tools
8
FROM defra-dotnetcore-development:$PARENT_VERSION AS development
@@ -54,7 +54,7 @@ ENV ASPNETCORE_URLS=http://*:${PORT}
54
EXPOSE ${PORT}
55
56
# Copy the compiled app from the development build stage
57
-COPY --from=development /home/dotnet/out/ ./
+COPY --from=development --chown=root:root /home/dotnet/out/ ./ && chmod -R a-w /home/dotnet
58
59
# Set the default command for production to run the compiled app.
60
CMD ["dotnet", "exampleService.dll"]
0 commit comments