adityasugandhi commited on
Commit
6936b3e
·
1 Parent(s): e2874da

Add application file

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM continuumio/miniconda3:latest
2
+
3
+ # Set environment variables
4
+ ENV PATH /opt/conda/bin:$PATH
5
+
6
+ # Create conda environment
7
+ COPY environment.yml /code/environment.yml
8
+ RUN conda env create -f /code/environment.yml
9
+
10
+ # Activate the conda environment
11
+ SHELL ["conda", "run", "-n", "RAGAPP", "/bin/bash", "-c"]
12
+
13
+ # Set working directory
14
+ WORKDIR /code
15
+
16
+ # Copy remaining files
17
+ COPY . .
18
+
19
+ # Command to run the application
20
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]