Skip to content

Commit

Permalink
Merge pull request #104 from dynatrace-oss/85-nodejs
Browse files Browse the repository at this point in the history
feature: Adding nodejs 20 to devcontainer
  • Loading branch information
heckelmann committed Aug 31, 2023
2 parents f707ddb + fa88bbc commit ffc2b5f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY docker.sh /tmp/scripts/
# update the container
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install zsh -y && \
apt-get install zsh ca-certificates gnupg -y && \
apt-get autoremove -y && \
apt-get clean -y

Expand All @@ -35,6 +35,13 @@ RUN FLAGD_RELEASE=$(curl --silent "https://api.github.com/repos/open-feature/fla
&& mv /usr/local/bin/flagd_linux_x86_64 /usr/local/bin/flagd \
&& flagd version

# Install nodejs
RUN mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& NODE_MAJOR=20 && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update && apt-get install nodejs -y


RUN /tmp/scripts/docker.sh

# change ownership of the home directory
Expand Down

0 comments on commit ffc2b5f

Please sign in to comment.