Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
@@ -12,10 +12,15 @@ ENV HOME=/home/user \
|
|
12 |
|
13 |
WORKDIR $HOME/app
|
14 |
|
15 |
-
#
|
16 |
-
COPY --chown=user . $HOME/app
|
|
|
|
|
17 |
|
18 |
-
#
|
|
|
|
|
|
|
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.
|