ParthSadaria commited on
Commit
f5ebc4b
·
verified ·
1 Parent(s): 9aa2ded

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as the base image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Install dependencies
8
+ COPY requirements.txt .
9
+
10
+ # Install dependencies from requirements.txt
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Install Node.js dependencies for Loki.AI front-end (if needed)
14
+ COPY package.json .
15
+ RUN npm install
16
+
17
+ # Copy all other files into the container
18
+ COPY . .
19
+
20
+ # Expose the port where the app will run
21
+ EXPOSE 8000
22
+
23
+ # Set environment variables if necessary
24
+ ENV PATH="/app:${PATH}"
25
+
26
+ # Command to run FastAPI app with Uvicorn
27
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]