Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +18 -23
Dockerfile
CHANGED
@@ -1,28 +1,23 @@
|
|
1 |
-
|
2 |
-
|
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 |
-
#
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
|
15 |
-
#
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
|
21 |
-
#
|
22 |
-
|
|
|
23 |
|
24 |
-
#
|
25 |
-
|
26 |
|
27 |
-
#
|
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 |
+
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"
|