Skip to content

Commit dfd1999

Browse files
committed
Fix Dockerfile - update to Node 20
1 parent 9bd5851 commit dfd1999

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

jobhunt/Dockerfile

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
22
WORKDIR /app
33

4-
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
5-
RUN apt-get install -y nodejs unzip ca-certificates jq curl
4+
# Add repo for node
5+
RUN apt-get update
6+
RUN apt-get install -y ca-certificates curl gnupg
7+
RUN mkdir -p /etc/apt/keyrings
8+
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
9+
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
10+
11+
RUN apt-get update
12+
RUN apt-get install -y nodejs jq unzip
613
RUN npm install -g pnpm
714

815
# Copy csproj and restore as distinct layers

jobhunt/Dockerfile.dev

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
22
WORKDIR /app
33

4+
# Add repo for node
5+
RUN apt-get update
6+
RUN apt-get install -y ca-certificates curl gnupg
7+
RUN mkdir -p /etc/apt/keyrings
8+
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
9+
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
10+
411
# install node and npm
5-
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
612
RUN apt-get update
7-
RUN apt-get install -y --no-install-recommends nodejs unzip libfreetype6 libfontconfig1 ca-certificates procps pandoc firefox-esr curl jq
13+
RUN apt-get install -y --no-install-recommends nodejs unzip libfreetype6 libfontconfig1 ca-certificates procps pandoc firefox-esr jq
814

915
# install pnpm
1016
RUN npm install -g pnpm

0 commit comments

Comments
 (0)