Skip to content

Commit 2d66809

Browse files
author
Nate McMaster
committed
Remove entrypoint from Dockerfile so build arguments properly flow into the container
1 parent 2f13959 commit 2d66809

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/docker/alpine.Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
2121
# Workarounds https://github.com/dotnet/cli/issues/8738
2222
ENV DOTNET_INSTALL_SKIP_PREREQS=1
2323
ENV KOREBUILD_SKIP_RUNTIME_INSTALL=1
24+
ENV IsAlpineSupported=true
2425

2526
COPY global.json /tmp/global.json
2627
RUN DOTNET_SDK_VERSION="$(jq -r '.sdk.version' /tmp/global.json)" \
@@ -29,5 +30,3 @@ RUN DOTNET_SDK_VERSION="$(jq -r '.sdk.version' /tmp/global.json)" \
2930
&& mkdir -p /usr/share/dotnet \
3031
&& tar xzf /tmp/dotnet.tar.gz -C /usr/share/dotnet \
3132
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
32-
33-
ENTRYPOINT [ './build.sh', '/p:IsAlpineSupported=true' ]

dockerbuild.sh

+1
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,5 @@ docker run \
108108
-v "$DIR:/code/build" \
109109
${docker_args[@]+"${docker_args[@]}"} \
110110
$tagname \
111+
./build.sh \
111112
${build_args[@]+"${build_args[@]}"}

0 commit comments

Comments
 (0)