Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ COPY --from=build /out /App
COPY dab-config.json /App/dab-config.json
WORKDIR /App
ENV ASPNETCORE_URLS=http://+:5000

# Run as the non-root "app" user (UID/GID 64198) that ships with the
# mcr.microsoft.com/dotnet/aspnet base image. DAB is just an ASP.NET Core
# process and does not require root privileges. Declaring USER explicitly
# sets the image's Config.User field so image scanners (e.g. Checkmarx One)
# that require a non-root user in the final stage are satisfied.
# Port 5000 is above 1024 so a non-root user can bind to it without CAP_NET_BIND_SERVICE.
USER app
Comment on lines +20 to +24

ENTRYPOINT ["dotnet", "Azure.DataApiBuilder.Service.dll"]
Loading