-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#escape=` | ||
FROM mcr.microsoft.com/windows/servercore:ltsc2016 | ||
|
||
# Set the Node.js version you want to install | ||
ENV NODE_VERSION 16.20.1 | ||
|
||
# Download and install Node.js | ||
RUN powershell -Command ` | ||
$ErrorActionPreference = 'Stop'; ` | ||
Invoke-WebRequest -Uri https://nodejs.org/dist/v$env:NODE_VERSION/node-v$env:NODE_VERSION-win-x64.zip -OutFile node.zip; ` | ||
Expand-Archive -Path node.zip -DestinationPath C:\; ` | ||
Rename-Item -Path C:\node-v$env:NODE_VERSION-win-x64 -NewName C:\nodejs; ` | ||
Remove-Item -Force node.zip | ||
|
||
# Add Node.js to PATH | ||
ENV PATH="C:\nodejs;C:\nodejs\node_modules\npm\bin;${PATH}" | ||
|
||
WORKDIR "C:\mongodb-client-encryption" | ||
COPY . . | ||
|
||
RUN node "C:\mongodb-client-encryption\.github\scripts\libmongocrypt.mjs" | ||
|
||
CMD ["ping", "-i", "20", "localhost"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters