Spaces:
Paused
Paused
giorgio-caparvi
commited on
Commit
·
ff79bde
1
Parent(s):
554a6f2
fixed dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -13,11 +13,13 @@ WORKDIR /api
|
|
13 |
|
14 |
# Copy the environment file and install dependencies
|
15 |
COPY --chown=user api/environment.yml ./
|
16 |
-
RUN conda env create -f environment.yml && conda clean -a -y
|
17 |
|
18 |
-
#
|
19 |
-
RUN
|
20 |
-
|
|
|
|
|
|
|
21 |
|
22 |
# Copy the backend application code
|
23 |
COPY --chown=user api/ .
|
|
|
13 |
|
14 |
# Copy the environment file and install dependencies
|
15 |
COPY --chown=user api/environment.yml ./
|
|
|
16 |
|
17 |
+
# Initialize conda for bash, create the environment, and clean up
|
18 |
+
RUN conda init bash && \
|
19 |
+
bash -c "source ~/.bashrc && conda env create -f environment.yml && conda clean -a -y"
|
20 |
+
|
21 |
+
# Ensure conda is available in non-interactive shells
|
22 |
+
RUN echo "source ~/.bashrc" >> /home/user/.bashrc
|
23 |
|
24 |
# Copy the backend application code
|
25 |
COPY --chown=user api/ .
|