You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jobhunt/Dockerfile
+9-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,15 @@
1
1
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
2
2
WORKDIR /app
3
3
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
Copy file name to clipboardExpand all lines: jobhunt/Dockerfile.dev
+8-2
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,16 @@
1
1
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
2
2
WORKDIR /app
3
3
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
+
4
11
# install node and npm
5
-
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
0 commit comments