Skip to content

Commit 112dd47

Browse files
authored
Update Dockerfile
1 parent 8b1bf79 commit 112dd47

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:${VERSION} AS base-builder
44

55
# Create appuser.
66
ENV USER=dotnet
7-
ENV UID=245000
7+
ENV UID=45432
88
# See https://stackoverflow.com/a/55757473/12429735RUN
99
RUN adduser \
1010
--disabled-password \
@@ -45,7 +45,7 @@ RUN find / -xdev -perm -4000 -type f -exec chmod a-s {} \;
4545
# Create runtime image
4646
FROM scratch AS runtime-deps
4747
ENV USER=dotnet
48-
ENV UID=245000
48+
ENV UID=45432
4949
ENV DOTNET_ROOT=/.dotnet
5050

5151
ARG TARGETARCH
@@ -77,7 +77,7 @@ COPY --from=builder /usr/share/dotnet $DOTNET_ROOT
7777
# Create runtime image
7878
FROM scratch AS runtime-deps-globalization
7979
ENV USER=dotnet
80-
ENV UID=245000
80+
ENV UID=45432
8181
ENV DOTNET_ROOT=/.dotnet
8282

8383
ARG TARGETARCH
@@ -105,4 +105,4 @@ USER $UID:$UID
105105

106106
# Create runtime image
107107
FROM runtime-deps-globalization AS aspnet-globalization
108-
COPY --from=globalization-builder /usr/share/dotnet $DOTNET_ROOT
108+
COPY --from=globalization-builder /usr/share/dotnet $DOTNET_ROOT

0 commit comments

Comments
 (0)