Spaces:
Runtime error
Runtime error
Jacob Silterra
commited on
Commit
·
25e2e8a
1
Parent(s):
47e84bb
Install gradio in this image, instead of base DiffDock-Pocker image.
Browse files- Dockerfile +7 -4
- basic_environment.yml → environment.yml +1 -1
- requirements.txt +2 -4
Dockerfile
CHANGED
|
@@ -1,13 +1,16 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
| 2 |
|
| 3 |
USER $APPUSER
|
| 4 |
WORKDIR $HOME/app
|
| 5 |
|
| 6 |
-
COPY --chown=$APPUSER
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Expose port for web service
|
| 9 |
-
|
| 10 |
-
EXPOSE $PORT
|
| 11 |
|
| 12 |
# Run app under micromamba environment
|
| 13 |
CMD ["sh", "-c", "micromamba run -n ${ENV_NAME} python3 main.py"]
|
|
|
|
| 1 |
+
# This container is a basic web frontend, we do the heavy-lifting in the
|
| 2 |
+
# main DiffDock-Pocket image.
|
| 3 |
+
FROM silterra/diffdock-pocket
|
| 4 |
|
| 5 |
USER $APPUSER
|
| 6 |
WORKDIR $HOME/app
|
| 7 |
|
| 8 |
+
COPY --chown=$APPUSER:$APPUSER . $HOME/app
|
| 9 |
+
|
| 10 |
+
RUN ~/bin/micromamba install -n $ENV_NAME -c conda-forge -c defaults --file requirements.txt
|
| 11 |
|
| 12 |
# Expose port for web service
|
| 13 |
+
EXPOSE 7860
|
|
|
|
| 14 |
|
| 15 |
# Run app under micromamba environment
|
| 16 |
CMD ["sh", "-c", "micromamba run -n ${ENV_NAME} python3 main.py"]
|
basic_environment.yml → environment.yml
RENAMED
|
@@ -9,4 +9,4 @@ dependencies:
|
|
| 9 |
- pip=23.3.1
|
| 10 |
- pytorch=1.13.1
|
| 11 |
- pip:
|
| 12 |
-
-
|
|
|
|
| 9 |
- pip=23.3.1
|
| 10 |
- pytorch=1.13.1
|
| 11 |
- pip:
|
| 12 |
+
- -r requirements.txt
|
requirements.txt
CHANGED
|
@@ -1,4 +1,2 @@
|
|
| 1 |
-
gradio
|
| 2 |
-
|
| 3 |
-
torchvision
|
| 4 |
-
requests
|
|
|
|
| 1 |
+
gradio==3.50
|
| 2 |
+
requests==2.31.0
|
|
|
|
|
|