Skip to content

Commit

Permalink
Switch build from installing node into dotnet base image to installin…
Browse files Browse the repository at this point in the history
…g dotnet into a node base image
  • Loading branch information
niklasstich committed Nov 28, 2023
1 parent b730022 commit fca2c8c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
RUN apt update && apt install -y nodejs npm
FROM node:21 AS build
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN rm packages-microsoft-prod.deb
RUN apt update && apt install -y npm dotnet-sdk-7.0

WORKDIR /app
COPY ["LearningOutcomesGenerator/LearningOutcomesGenerator.csproj", "LearningOutcomesGenerator/"]
Expand Down

0 comments on commit fca2c8c

Please sign in to comment.