Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +17 -14
Dockerfile
CHANGED
@@ -1,19 +1,22 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
5 |
|
6 |
-
#
|
7 |
-
|
|
|
|
|
|
|
8 |
|
9 |
-
#
|
10 |
-
|
11 |
|
12 |
-
#
|
13 |
-
|
14 |
|
15 |
-
#
|
16 |
-
RUN
|
17 |
-
|
18 |
-
# Run the server
|
19 |
-
RUN make -C robot-server dev
|
|
|
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"
|
|
|
|
|
|