Skip to content

Commit

Permalink
playground working
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Nov 7, 2023
1 parent 42f66a3 commit 0a71619
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build

RUN apt-get update && \
apt-get install curl gnupg -yq && \
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
apt-get install -y nodejs
RUN set -uex \
&& 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 \
&& NODE_MAJOR=18 \
&& 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-get update \
&& apt-get install nodejs -y;

WORKDIR /build
COPY ./Directory.Build.props ./Directory.Packages.props ./
Expand Down

0 comments on commit 0a71619

Please sign in to comment.