Skip to content

Commit

Permalink
revert dockerfile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 17, 2024
1 parent 5a40f3c commit 522b051
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,45 +64,30 @@ RUN dotnet publish -c Release -r win10-x64 -o ./publish --self-contained true
COPY DCL_PiXYZ/ ./

# bundle all apps
FROM mcr.microsoft.com/dotnet/core/runtime:3.1
FROM mcr.microsoft.com/windows/servercore:ltsc2019

# ADD https://nodejs.org/dist/v18.0.0/node-v18.0.0-win-x64.zip C:\\node.zip
# RUN powershell -Command \
# Expand-Archive -Path C:\\node.zip -DestinationPath C:\\Node; \
# Remove-Item -Force C:\\node.zip
# copy node installation from base image
COPY --from=base /Node /Node
ADD https://nodejs.org/dist/v18.0.0/node-v18.0.0-win-x64.zip C:\\node.zip
RUN powershell -Command \
Expand-Archive -Path C:\\node.zip -DestinationPath C:\\Node; \
Remove-Item -Force C:\\node.zip

RUN setx /M PATH "%PATH%;C:\Node\node-v18.0.0-win-x64"

# # Install dotnet runtime
# ADD https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-3.1.32-windows-x64-installer C:\\dotnet-runtime.exe
# RUN C:\\dotnet-runtime.exe /quiet /install

WORKDIR /app

RUN dir
COPY --from=base /bin/vulkan-1.dll .

RUN dir
COPY --from=dotnet-build /app/api/publish/DCL_PiXYZ.exe .
COPY --from=dotnet-build /app/api/publish/DCL_PiXYZ.dll .

RUN dir
COPY --from=scene-lod-build /scene-lod/dist ./scene-lod/dist
COPY --from=scene-lod-build /scene-lod/package.json ./scene-lod/package.json
COPY --from=scene-lod-build /scene-lod/package-lock.json ./scene-lod/package-lock.json
COPY --from=scene-lod-build /scene-lod/node_modules ./scene-lod/node_modules

RUN dir
COPY --from=consumer-server-build /consumer-server/dist ./consumer-server/dist
COPY --from=consumer-server-build /consumer-server/package.json ./consumer-server/package.json
COPY --from=consumer-server-build /consumer-server/yarn.lock ./consumer-server/yarn.lock
COPY --from=consumer-server-build /consumer-server/node_modules ./consumer-server/node_modules

RUN dir
COPY build-lods.ps1 .

RUN dir

CMD ["node", "./consumer-server/dist/index.js"]

0 comments on commit 522b051

Please sign in to comment.