baxin commited on
Commit
1063c0e
·
1 Parent(s): 718c69e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -11
Dockerfile CHANGED
@@ -8,7 +8,8 @@ ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
8
 
9
  # Initialize pyenv
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
 
@@ -28,21 +29,21 @@ RUN ls
28
  # RUN /bin/bash -c "source ~/.bashrc && make robot-server setup"
29
  # Install yarn
30
 
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
- ENV NODE_VERSION 16.18.0
34
- # Install nvm with node and npm
35
- RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash \
36
- && . $NVM_DIR/nvm.sh \
37
- && nvm install $NODE_VERSION \
38
- && nvm alias default $NODE_VERSION \
39
- && nvm use default
40
 
41
  # Set up PATH so that Node.js and npm can be found
42
- ENV PATH $NVM_DIR/versions/node/v16.18.0/bin:$PATH
43
 
44
  # Run make command in robot-server directory
45
- RUN /bin/bash -c "source ~/.bashrc && make robot-server setup"
46
 
47
  # Set up a new user named "user" with user ID 1000
48
  RUN useradd -m -u 1000 user
 
8
 
9
  # Initialize pyenv
10
  RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
11
+ RUN echo 'export
12
+ PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
13
  RUN echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
14
  RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc
15
 
 
29
  # RUN /bin/bash -c "source ~/.bashrc && make robot-server setup"
30
  # Install yarn
31
 
32
+ # 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"
33
 
34
+ # ENV NODE_VERSION 16.18.0
35
+ # # Install nvm with node and npm
36
+ # RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash \
37
+ # && . $NVM_DIR/nvm.sh \
38
+ # && nvm install $NODE_VERSION \
39
+ # && nvm alias default $NODE_VERSION \
40
+ # && nvm use default
41
 
42
  # Set up PATH so that Node.js and npm can be found
43
+ # ENV PATH $NVM_DIR/versions/node/v16.18.0/bin:$PATH
44
 
45
  # Run make command in robot-server directory
46
+ RUN /bin/bash -c "source ~/.bashrc && make -C robot-server setup"
47
 
48
  # Set up a new user named "user" with user ID 1000
49
  RUN useradd -m -u 1000 user