Skip to content

Commit

Permalink
Set Path differently, Use node 22 and update to ltsc 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
jwdb committed Jan 8, 2025
1 parent ea7c480 commit 823abf6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Dockerfile.Windows
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#
# Base-Node
#
FROM mcr.microsoft.com/windows/servercore:ltsc2022-amd64 AS nodewindows
FROM mcr.microsoft.com/windows/servercore:ltsc2025-amd64 AS nodewindows
# Install dependencies first
RUN mkdir c:\node
WORKDIR c:\\node

RUN curl.exe -o Node.zip https://nodejs.org/dist/v20.0.0/node-v20.0.0-win-x64.zip
RUN curl.exe -o Node.zip https://nodejs.org/dist/v22.12.0/node-v22.12.0-win-x64.zip
RUN tar -xf Node.zip -C c:\node
RUN del Node.zip

ENV PATH="%path%;C:\Windows\System32;C:\Node\node-v20.0.0-win-x64"

ENTRYPOINT "cmd.exe /S /C"
USER ContainerAdministrator
RUN setx /M PATH "%PATH%;C:\Node\node-v22.12.0-win-x64"
USER ContainerUser

#
# Builder
Expand Down Expand Up @@ -51,7 +51,9 @@ COPY NOTICE.txt ./

COPY --from=builder c:/azurite/dist/ dist/

RUN takeown /F . /d Y /r
USER ContainerAdministrator
RUN icacls c:\azurite /grant "Authenticated Users":(OI)(CI)M
USER ContainerUser

RUN npm pkg set scripts.prepare="echo no-prepare"

Expand All @@ -66,6 +68,8 @@ EXPOSE 10001
# Table Storage Port
EXPOSE 10002

WORKDIR C:\\Node\\node-v20.0.0-win-x64\\
ENTRYPOINT "cmd.exe /S /C"

WORKDIR C:\\Node\\node-v22.12.0-win-x64\\

CMD "azurite -l c:/data --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0"
CMD azurite -l c:/data --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0

0 comments on commit 823abf6

Please sign in to comment.