diff --git a/src/Server/Dockerfile b/src/Server/Dockerfile index dc24cbbe..05f9bf46 100644 --- a/src/Server/Dockerfile +++ b/src/Server/Dockerfile @@ -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"