baxin commited on
Commit
3f3bdea
·
1 Parent(s): 69784c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -23
Dockerfile CHANGED
@@ -1,28 +1,23 @@
1
- FROM python:3.7.15
2
- EXPOSE 31950
3
- RUN git clone https://github.com/Opentrons/opentrons.git
4
- WORKDIR /app/opentrons
5
- RUN make setup-py
6
- RUN make -C robot-server dev
7
- # # Use the base image from kojikno/ot-robot-server
8
- # FROM kojikno/ot-robot-server:v1.2
9
 
10
- # # Set environment variables for pyenv
11
- # ENV HOME /root
12
- # ENV PYENV_ROOT $HOME/.pyenv
13
- # ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
14
 
15
- # # Initialize pyenv
16
- # RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
17
- # RUN echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
18
- # RUN echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
19
- # RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc
20
 
21
- # # Set the working directory
22
- # WORKDIR /root/opentrons
 
23
 
24
- # # Run make command in robot-server directory
25
- # RUN /bin/bash -c "source ~/.bashrc && make -C robot-server dev"
26
 
27
- # # Run chat UI
28
- # RUN /bin/bash -c "source ~/.bashrc && python app.py"
 
1
+ # Use the base image from kojikno/ot-robot-server
2
+ FROM kojikno/ot-robot-server:v1.2
 
 
 
 
 
 
3
 
4
+ # Set environment variables for pyenv
5
+ ENV HOME /root
6
+ ENV PYENV_ROOT $HOME/.pyenv
7
+ 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
 
15
+ # Set the working directory
16
+ WORKDIR /root/opentrons
17
+ EXPOSE 31950
18
 
19
+ # Run make command in robot-server directory
20
+ RUN /bin/bash -c "source ~/.bashrc && make -C robot-server dev"
21
 
22
+ # Run chat UI
23
+ RUN /bin/bash -c "source ~/.bashrc && python app.py"