Skip to content

Commit

Permalink
explicitly set SHELL to cmd, bring back build.bat RUN without ENTRYPO…
Browse files Browse the repository at this point in the history
…INT-like type of execution in instance Dockerfile
  • Loading branch information
AnastaZIuk committed Nov 26, 2023
1 parent b500ef9 commit 462b4bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ARG CMAKE_SCRIPTS_DIRECTORY="C:\docker\scripts\cmake"

FROM ${BASE_IMAGE}

SHELL ["cmd", "/S", "/C"]

RUN `
# Download node LTS
curl -SL --output nodejs.msi https://nodejs.org/dist/v20.9.0/node-v20.9.0-x64.msi `
Expand Down
4 changes: 3 additions & 1 deletion project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ARG BUILD_SCRIPT_ARGS="-- -j1"

FROM ${BASE_IMAGE}

SHELL ["cmd", "/S", "/C"]

ARG BUILD_SCRIPT_DIRECTORY

RUN `
Expand All @@ -21,7 +23,7 @@ ARG BUILD_SCRIPT_ARGS

# Build DXC
RUN `
VsDevCmd.bat && powershell.exe -NoLogo -ExecutionPolicy Bypass -Command build.bat %BUILD_SCRIPT_ARGS%
build.bat %BUILD_SCRIPT_ARGS%

# Generate dxc.local.properties
RUN `
Expand Down

0 comments on commit 462b4bc

Please sign in to comment.