Remove entrypoint from Dockerfile so build arguments properly flow into the container
This commit is contained in:
parent
2f13959505
commit
2d6680986f
|
|
@ -21,6 +21,7 @@ ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
|||
# Workarounds https://github.com/dotnet/cli/issues/8738
|
||||
ENV DOTNET_INSTALL_SKIP_PREREQS=1
|
||||
ENV KOREBUILD_SKIP_RUNTIME_INSTALL=1
|
||||
ENV IsAlpineSupported=true
|
||||
|
||||
COPY global.json /tmp/global.json
|
||||
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)" \
|
|||
&& mkdir -p /usr/share/dotnet \
|
||||
&& tar xzf /tmp/dotnet.tar.gz -C /usr/share/dotnet \
|
||||
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
|
||||
|
||||
ENTRYPOINT [ './build.sh', '/p:IsAlpineSupported=true' ]
|
||||
|
|
|
|||
|
|
@ -108,4 +108,5 @@ docker run \
|
|||
-v "$DIR:/code/build" \
|
||||
${docker_args[@]+"${docker_args[@]}"} \
|
||||
$tagname \
|
||||
./build.sh \
|
||||
${build_args[@]+"${build_args[@]}"}
|
||||
|
|
|
|||
Loading…
Reference in New Issue