TillCyrill commited on
Commit
b55971a
1 Parent(s): 8d4e327

from gradio

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -3
Dockerfile CHANGED
@@ -12,6 +12,7 @@ RUN pip install torch_geometric
12
  RUN pip install h5py ipykernel==5.5.5 ipywidgets==7.6.3 jupyter nglview==2.7.7 pandas
13
  RUN pip install pytorch-lightning==1.8.3
14
  RUN pip install gradio
 
15
  #RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
 
17
  RUN apt-get update; \
@@ -50,7 +51,16 @@ ENV PYTHONPATH="$AMBERHOME/lib/python3.10/site-packages"
50
  #COPY --chown=user . $HOME/app
51
 
52
 
53
- RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser .
54
- USER appuser
55
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
56
 
 
12
  RUN pip install h5py ipykernel==5.5.5 ipywidgets==7.6.3 jupyter nglview==2.7.7 pandas
13
  RUN pip install pytorch-lightning==1.8.3
14
  RUN pip install gradio
15
+ RUN pip install requests
16
  #RUN pip install --no-cache-dir --upgrade -r requirements.txt
17
 
18
  RUN apt-get update; \
 
51
  #COPY --chown=user . $HOME/app
52
 
53
 
54
+ #RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser .
55
+ #USER appuser
56
+ #CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
57
+
58
+ WORKDIR $HOME/app
59
+
60
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
61
+ COPY --chown=user . $HOME/app
62
+
63
+ CMD ["python", "app.py"]
64
+
65
+
66