baxin commited on
Commit
30ea8d8
·
1 Parent(s): b0dd316

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -3
Dockerfile CHANGED
@@ -19,8 +19,24 @@ WORKDIR /root/opentrons
19
  # Run chat UI
20
  # RUN /bin/bash -c "source ~/.bashrc && pyenv install 3.8.5"
21
  # RUN /bin/bash -c "source ~/.bashrc && pyenv global 3.8.5"
22
- RUN /bin/bash -c "source ~/.bashrc && pip install gradio"
23
- RUN /bin/bash -c "source ~/.bashrc && python app.py"
24
 
25
  # Run make command in robot-server directory
26
- RUN /bin/bash -c "source ~/.bashrc && make -C robot-server dev"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  # Run chat UI
20
  # RUN /bin/bash -c "source ~/.bashrc && pyenv install 3.8.5"
21
  # RUN /bin/bash -c "source ~/.bashrc && pyenv global 3.8.5"
22
+ # RUN /bin/bash -c "source ~/.bashrc && pip install gradio"
23
+ # RUN /bin/bash -c "source ~/.bashrc && python app.py"
24
 
25
  # Run make command in robot-server directory
26
+ RUN /bin/bash -c "source ~/.bashrc && make -C robot-server dev"
27
+
28
+
29
+ # Switch to the "user" user
30
+ USER user
31
+
32
+ # Set home to the user's home directory
33
+ ENV HOME=/home/user \
34
+ PATH=/home/user/.local/bin:$PATH
35
+
36
+ # Set the working directory to the user's home directory
37
+ WORKDIR $HOME/app
38
+
39
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
40
+ COPY --chown=user . $HOME/app
41
+
42
+ CMD ["python", "app.py"]