MilesCranmer commited on
Commit
d50f3f0
1 Parent(s): 4b720d9

Up dockerfile

Browse files
Files changed (1) hide show
  1. gui/Dockerfile +3 -4
gui/Dockerfile CHANGED
@@ -28,15 +28,14 @@ ENV HOME=/home/user
28
  ENV PATH=/home/user/.local/bin:$PATH
29
 
30
  # Install Python dependencies in a virtual environment
31
- RUN python -m venv /home/user/.venv
32
- RUN source /home/user/.venv/bin/activate && pip install --no-cache-dir --upgrade -r /code/requirements.txt
33
 
34
  # Install Julia dependencies
35
- RUN source /home/user/.venv/bin/activate && python -c "import pysr"
36
 
37
  WORKDIR $HOME/app
38
  COPY --chown=user . $HOME/app
39
 
40
  EXPOSE 7860
41
 
42
- CMD ["/bin/bash", "-c", "source /home/user/.venv/bin/activate && python /home/user/app/app.py"]
 
28
  ENV PATH=/home/user/.local/bin:$PATH
29
 
30
  # Install Python dependencies in a virtual environment
31
+ RUN /home/user/.venv/bin/python -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
32
 
33
  # Install Julia dependencies
34
+ RUN source /home/user/.venv/bin/python -c "import pysr"
35
 
36
  WORKDIR $HOME/app
37
  COPY --chown=user . $HOME/app
38
 
39
  EXPOSE 7860
40
 
41
+ CMD ["/bin/bash", "-l", "-c", "/home/user/.venv/bin/python /home/user/app/app.py"]