Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussell committed Mar 21, 2023
1 parent 90a520d commit 8db9ca8
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion eng/dockerfile-templates/Dockerfile.common-dotnet-envs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
set isDistroless to find(OS_VERSION, "distroless") >= 0 || find(OS_VERSION, "chiseled") >= 0 ^
set lineContinuation to when(isWindows, "`", "\") ^
set port to when(isDistroless || (dotnetVersion != "6.0" && dotnetVersion != "7.0"), "8080", "80")
}}ENV {{lineContinuation}}{{if (!isWindows && dotnetVersion != "6.0" && dotnetVersion != "7.0") || isDistroless:
}}ENV {{lineContinuation}}{{if (!isWindows && dotnetVersion != "6.0" && dotnetVersion != "7.0") || (isDistroless && !isMariner):
# UID of the non-root user 'app'
APP_UID={{ARGS["uid"]}} {{lineContinuation}}}}
# Configure web servers to bind to port {{port}} when present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ FROM mcr.microsoft.com/cbl-mariner/distroless/minimal:1.0
COPY --from=installer /staging/ /

ENV \
# UID of the non-root user 'app'
APP_UID=1000 \
# Configure web servers to bind to port 8080 when present
ASPNETCORE_URLS=http://+:8080 \
# Enable detection of running in a container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ FROM mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0
COPY --from=installer /staging/ /

ENV \
# UID of the non-root user 'app'
APP_UID=101 \
# Configure web servers to bind to port 8080 when present
ASPNETCORE_URLS=http://+:8080 \
# Enable detection of running in a container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ FROM mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0
COPY --from=installer /staging/ /

ENV \
# UID of the non-root user 'app'
APP_UID=101 \
# Configure web servers to bind to port 8080 when present
ASPNETCORE_URLS=http://+:8080 \
# Enable detection of running in a container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ COPY --from=installer /staging/ /
COPY --from=installer --chown=101:101 /staging/home/app /home/app

ENV \
# UID of the non-root user 'app'
APP_UID=101 \
# Configure web servers to bind to port 8080 when present
ASPNETCORE_URLS=http://+:8080 \
# Enable detection of running in a container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ COPY --from=installer /staging/ /
COPY --from=installer --chown=101:101 /staging/home/app /home/app

ENV \
# UID of the non-root user 'app'
APP_UID=101 \
# Configure web servers to bind to port 8080 when present
ASPNETCORE_URLS=http://+:8080 \
# Enable detection of running in a container
Expand Down

0 comments on commit 8db9ca8

Please sign in to comment.