adityasugandhi commited on
Commit
30343f7
1 Parent(s): e1c5524

requirements.txt

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -19
Dockerfile CHANGED
@@ -1,22 +1,11 @@
1
- FROM continuumio/miniconda3:latest
 
2
 
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"]
14
-
15
- # Set working directory
16
- WORKDIR /code
17
-
18
- # Copy remaining files
19
- COPY . .
20
-
21
- # Command to run the application
22
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Use an existing Docker image as a base
2
+ FROM python:3.9
3
 
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
 
7
+ # Copy the requirements file into the container at /app
8
+ COPY requirements.txt /requirements
9
 
10
+ # Install the dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt