Skip to content

Commit

Permalink
Try fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
TDroogers committed Sep 17, 2023
1 parent 8251b76 commit bee9487
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ WORKDIR /app
EXPOSE 80
EXPOSE 443

ENV NODE_MAJOR 18
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
RUN apt-get update -yq \
&& apt-get install curl gnupg -yq \
&& curl -sL https://deb.nodesource.com/setup_18.x | bash \
&& apt-get install nodejs -yq
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt update && apt install -y nodejs
WORKDIR /src
COPY ["src/Server/Drogecode.Knrm.Oefenrooster.Server.csproj", "Server/"]
RUN dotnet restore "Server/Drogecode.Knrm.Oefenrooster.Server.csproj"
Expand Down

0 comments on commit bee9487

Please sign in to comment.