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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -12,10 +12,15 @@ ENV HOME=/home/user \
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.
 
12
 
13
  WORKDIR $HOME/app
14
 
15
+ # Explicitly copy the environment file first.
16
+ COPY --chown=user environment.yml $HOME/app/environment.yml
17
+ # Then copy the rest of the application files.
18
+ COPY --chown=user . $HOME/app/
19
 
20
+ # (Optional) Debug: List files in $HOME/app to verify environment.yml is present.
21
+ RUN ls -la $HOME/app
22
+
23
+ # Create the conda environment using the absolute path to the environment file.
24
  RUN conda env create -f $HOME/app/environment.yml
25
 
26
  # Run demo.py using the 'ssgqa' conda environment.