adityasugandhi commited on
Commit
e1c5524
1 Parent(s): 5682d8d
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -3,9 +3,11 @@ FROM continuumio/miniconda3:latest
3
  # Set environment variables
4
  ENV PATH /opt/conda/bin:$PATH
5
 
6
- # Create conda environment
 
7
 
8
- RUN conda env create -f env.yml
 
9
 
10
  # Activate the conda environment
11
  SHELL ["conda", "run", "-n", "RAGAPP", "/bin/bash", "-c"]
@@ -17,4 +19,4 @@ WORKDIR /code
17
  COPY . .
18
 
19
  # Command to run the application
20
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
3
  # Set environment variables
4
  ENV PATH /opt/conda/bin:$PATH
5
 
6
+ # Copy env.yml file into the Docker image
7
+ COPY env.yml /env.yml
8
 
9
+ # Create conda environment
10
+ RUN conda env create -f /env.yml
11
 
12
  # Activate the conda environment
13
  SHELL ["conda", "run", "-n", "RAGAPP", "/bin/bash", "-c"]
 
19
  COPY . .
20
 
21
  # Command to run the application
22
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]