Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
|
@@ -23,7 +23,8 @@ WORKDIR /root/opentrons
|
|
| 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 |
# Set up a new user named "user" with user ID 1000
|
| 29 |
RUN useradd -m -u 1000 user
|
|
@@ -40,5 +41,10 @@ WORKDIR $HOME/app
|
|
| 40 |
|
| 41 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 42 |
COPY --chown=user . $HOME/app
|
| 43 |
-
CMD ["pip" "install", "-r", "requirements"]
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
RUN /bin/bash -c "source ~/.bashrc && make -C robot-server setup"
|
| 28 |
|
| 29 |
# Set up a new user named "user" with user ID 1000
|
| 30 |
RUN useradd -m -u 1000 user
|
|
|
|
| 41 |
|
| 42 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 43 |
COPY --chown=user . $HOME/app
|
| 44 |
+
# CMD ["pip" "install", "-r", "requirements"]
|
| 45 |
+
|
| 46 |
+
RUN pip install -r requirements
|
| 47 |
+
|
| 48 |
+
COPY --chown=user . $HOME/app
|
| 49 |
+
# CMD ["python", "main.py"]
|
| 50 |
+
ENTRYPOINT ["/bin/bash", "-c", "entrypoint.sh"]
|