yaziciz commited on
Commit
82fc421
·
verified ·
1 Parent(s): 83c3d5e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,10 +1,15 @@
1
  FROM yaziciz/deepsurg_vllm_v1
2
- WORKDIR /app
3
 
4
  RUN useradd -m -u 1000 user
 
5
  USER user
6
 
7
- RUN chown -R user:user /app
 
 
 
 
 
8
 
9
  # Install system dependency required for OpenCV.
10
  RUN apt-get update && apt-get install -y libgl1-mesa-glx
@@ -12,7 +17,5 @@ RUN apt-get update && apt-get install -y libgl1-mesa-glx
12
  # Create the conda environment from the environment file in /app.
13
  RUN conda env create -f environment.yml
14
 
15
- COPY --chown=user:user . /app
16
-
17
  # Run demo.py using the 'ssgqa' conda environment.
18
  CMD ["conda", "run", "--no-capture-output", "-n", "ssgqa", "python", "demo.py"]
 
1
  FROM yaziciz/deepsurg_vllm_v1
 
2
 
3
  RUN useradd -m -u 1000 user
4
+
5
  USER user
6
 
7
+ ENV HOME=/home/user \
8
+ PATH=/home/user/.local/bin:$PATH
9
+
10
+ WORKDIR $HOME/app
11
+
12
+ COPY --chown=user . $HOME/app
13
 
14
  # Install system dependency required for OpenCV.
15
  RUN apt-get update && apt-get install -y libgl1-mesa-glx
 
17
  # Create the conda environment from the environment file in /app.
18
  RUN conda env create -f environment.yml
19
 
 
 
20
  # Run demo.py using the 'ssgqa' conda environment.
21
  CMD ["conda", "run", "--no-capture-output", "-n", "ssgqa", "python", "demo.py"]