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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -17
Dockerfile CHANGED
@@ -1,22 +1,28 @@
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
 
18
- # Run make command in robot-server directory
19
- RUN /bin/bash -c "source ~/.bashrc && make -C robot-server dev"
20
 
21
- # Run chat UI
22
- RUN /bin/bash -c "source ~/.bashrc && python app.py"
 
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"