yaziciz commited on
Commit
96198fb
·
verified ·
1 Parent(s): f0a1926

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -8,14 +8,15 @@ RUN useradd -m -u 1000 user
8
  USER user
9
 
10
  ENV HOME=/home/user \
11
- PATH=/home/user/.local/bin:$PATH
12
 
13
  WORKDIR $HOME/app
14
 
 
15
  COPY --chown=user . $HOME/app
16
 
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"]
 
8
  USER user
9
 
10
  ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
 
13
  WORKDIR $HOME/app
14
 
15
+ # Copy all files into the app directory and ensure ownership.
16
  COPY --chown=user . $HOME/app
17
 
18
+ # Create the conda environment using the absolute path.
19
+ RUN conda env create -f $HOME/app/environment.yml
20
 
21
  # Run demo.py using the 'ssgqa' conda environment.
22
  CMD ["conda", "run", "--no-capture-output", "-n", "ssgqa", "python", "demo.py"]