Skip to content

Commit

Permalink
Install node into docker image for app.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Sep 1, 2023
1 parent 03fd4a2 commit 15e9a83
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ RUN dotnet publish -c release -o /out --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal AS runtime
WORKDIR /app
COPY --from=build /out ./
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& echo "node version: $(node --version)" \
&& echo "npm version: $(npm --version)" \
&& rm -rf /var/lib/apt/lists/*
RUN npm install --ignore-scripts
ENTRYPOINT ["dotnet", "MusicTypeChat.dll"]

0 comments on commit 15e9a83

Please sign in to comment.