smraux commited on
Commit
8e6e886
·
1 Parent(s): 4484774

Update Dockerfile to use environment.yaml instead of environment.yml

Browse files
Files changed (1) hide show
  1. 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.yml file to the container
8
- COPY environment.yml ./
9
 
10
- # Create the Conda environment from the environment.yml file
11
- RUN conda env create -f environment.yml && conda clean -afy
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.yml
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