Skip to content

Commit

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

ENV NODE_MAJOR 18
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
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
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
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 89fe438

Please sign in to comment.