Skip to content

Commit

Permalink
Install nvm in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tienne-B committed Apr 2, 2024
1 parent 09201fc commit 3faeebd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Grab a python image
FROM python:3.9
SHELL ["/bin/bash", "--login", "-c"]

# Just needed for all things python (note this is setting an env variable)
ENV PYTHONUNBUFFERED 1
Expand All @@ -12,13 +13,14 @@ ENV IN_DOCKER 1
# Setup Node/NPM
RUN apt-get update
RUN apt-get install -y curl nginx
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs npm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

# Copy all our files into the baseimage and cd to that directory
WORKDIR /tcd
COPY . /tcd/

RUN nvm install && nvm use

# Set git to use HTTPS (SSH is often blocked by firewalls)
RUN git config --global url."https://".insteadOf git://

Expand Down

0 comments on commit 3faeebd

Please sign in to comment.