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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -1,11 +1,18 @@
1
  FROM yaziciz/deepsurg_vllm_v1
2
  WORKDIR /app
3
 
 
 
 
 
 
4
  # Install system dependency required for OpenCV.
5
  RUN apt-get update && apt-get install -y libgl1-mesa-glx
6
 
7
  # Create the conda environment from the environment file in /app.
8
  RUN conda env create -f environment.yml
9
 
 
 
10
  # Run demo.py using the 'ssgqa' conda environment.
11
  CMD ["conda", "run", "--no-capture-output", "-n", "ssgqa", "python", "demo.py"]
 
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
11
 
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"]