Update Dockerfile to use environment.yaml instead of environment.yml
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -4,11 +4,11 @@ FROM continuumio/miniconda3
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /usr/src/app
|
6 |
|
7 |
-
# Copy the environment.
|
8 |
-
COPY environment.
|
9 |
|
10 |
-
# Create the Conda environment from the environment.
|
11 |
-
RUN conda env create -f environment.
|
12 |
|
13 |
# Activate the environment
|
14 |
SHELL ["conda", "run", "-n", "fooocus", "/bin/bash", "-c"]
|
@@ -17,7 +17,7 @@ SHELL ["conda", "run", "-n", "fooocus", "/bin/bash", "-c"]
|
|
17 |
COPY . .
|
18 |
|
19 |
# Install any additional dependencies specified in requirements.txt
|
20 |
-
# Note: This is only necessary if you have additional pip packages not listed in environment.
|
21 |
RUN conda run -n fooocus pip install --no-cache-dir -r requirements.txt
|
22 |
|
23 |
# Make port 80 available to the world outside this container
|
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /usr/src/app
|
6 |
|
7 |
+
# Copy the environment.yaml file to the container
|
8 |
+
COPY environment.yaml ./
|
9 |
|
10 |
+
# Create the Conda environment from the environment.yaml file
|
11 |
+
RUN conda env create -f environment.yaml && conda clean -afy
|
12 |
|
13 |
# Activate the environment
|
14 |
SHELL ["conda", "run", "-n", "fooocus", "/bin/bash", "-c"]
|
|
|
17 |
COPY . .
|
18 |
|
19 |
# Install any additional dependencies specified in requirements.txt
|
20 |
+
# Note: This is only necessary if you have additional pip packages not listed in environment.yaml
|
21 |
RUN conda run -n fooocus pip install --no-cache-dir -r requirements.txt
|
22 |
|
23 |
# Make port 80 available to the world outside this container
|