yaziciz commited on
Commit
e16c7bb
·
verified ·
1 Parent(s): add2081

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,12 +1,8 @@
1
  FROM yaziciz/deepsurg_vllm_v1
2
-
3
  WORKDIR /app
4
 
5
- # Make RUN commands use the new environment:
6
- SHELL ["conda", "run", "-n", "ssgqa", "/bin/bash", "-c"]
7
-
8
- RUN pip install --upgrade pip
9
- RUN conda env create -f /environment.yml
10
 
11
- # The code to run when container is started:
12
- CMD ["./run.sh"]
 
1
  FROM yaziciz/deepsurg_vllm_v1
 
2
  WORKDIR /app
3
 
4
+ # Create the conda environment from the environment file in /app.
5
+ RUN conda env create -f environment.yml
 
 
 
6
 
7
+ # Run demo.py using the newly created environment.
8
+ CMD ["conda", "run", "--no-capture-output", "-n", "myenv", "python", "demo.py"]