Browse Source

fix npm in docker builds (#1532)

pull/1533/head
Jason Dove 2 years ago committed by GitHub
parent
commit
0e6c7d2bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      docker/Dockerfile
  2. 2
      docker/arm32v7/Dockerfile
  3. 2
      docker/arm64/Dockerfile
  4. 2
      docker/nvidia/Dockerfile
  5. 2
      docker/vaapi/Dockerfile

3
docker/Dockerfile

@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg @@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install -y nodejs
RUN apt-get update && apt-get install -y nodejs npm
WORKDIR /source
# copy csproj and restore as distinct layers
@ -37,6 +37,7 @@ WORKDIR /source/ErsatzTV.Scanner @@ -37,6 +37,7 @@ WORKDIR /source/ErsatzTV.Scanner
RUN dotnet publish ErsatzTV.Scanner.csproj -c release -o /app -r linux-x64 --self-contained false --no-restore /p:DebugType=Embedded /p:InformationalVersion=${INFO_VERSION}
WORKDIR /source/ErsatzTV
RUN sed -i '/Scanner/d' ErsatzTV.csproj
RUN node --version
RUN dotnet publish ErsatzTV.csproj -c release -o /app -r linux-x64 --self-contained false --no-restore /p:DebugType=Embedded /p:InformationalVersion=${INFO_VERSION}
# final stage/image

2
docker/arm32v7/Dockerfile

@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install -y nodejs
RUN apt-get update && apt-get install -y nodejs npm
WORKDIR /source
# copy csproj and restore as distinct layers

2
docker/arm64/Dockerfile

@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install -y nodejs
RUN apt-get update && apt-get install -y nodejs npm
WORKDIR /source
# copy csproj and restore as distinct layers

2
docker/nvidia/Dockerfile

@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg @@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install -y nodejs
RUN apt-get update && apt-get install -y nodejs npm
WORKDIR /source
# copy csproj and restore as distinct layers

2
docker/vaapi/Dockerfile

@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg @@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install -y nodejs
RUN apt-get update && apt-get install -y nodejs npm
WORKDIR /source
# copy csproj and restore as distinct layers

Loading…
Cancel
Save