baxin commited on
Commit
eabbf0d
·
1 Parent(s): 7535686

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -1
Dockerfile CHANGED
@@ -10,7 +10,8 @@ ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
10
  RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
11
  RUN echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
12
  RUN echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
13
- RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc
 
14
 
15
  # Set the working directory
16
  WORKDIR /root/opentrons
@@ -29,6 +30,16 @@ RUN ls
29
  # Install yarn
30
  RUN /bin/bash -c "source ~/.bashrc && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install -y yarn"
31
 
 
 
 
 
 
 
 
 
 
 
32
  # Run make command in robot-server directory
33
  RUN /bin/bash -c "source ~/.bashrc && make robot-server setup"
34
 
 
10
  RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
11
  RUN echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
12
  RUN echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
13
+ RUN echo 'ev
14
+ al "$(pyenv init -)"' >> ~/.bashrc
15
 
16
  # Set the working directory
17
  WORKDIR /root/opentrons
 
30
  # Install yarn
31
  RUN /bin/bash -c "source ~/.bashrc && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install -y yarn"
32
 
33
+ # Install nvm with Node.js and npm
34
+ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash \
35
+ && . $HOME/.nvm/nvm.sh \
36
+ && nvm install 16.9.0 \
37
+ && nvm alias default 16.9.0 \
38
+ && nvm use default
39
+
40
+ # Set up PATH so that Node.js and npm can be found
41
+ ENV PATH $NVM_DIR/versions/node/v16.9.0/bin:$PATH
42
+
43
  # Run make command in robot-server directory
44
  RUN /bin/bash -c "source ~/.bashrc && make robot-server setup"
45