Update Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
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"]
|