KRISH09bha commited on
Commit
b0e9f06
·
verified ·
1 Parent(s): 9fe55d5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a minimal Python image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy project files
8
+ COPY . /app
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir --upgrade pip && \
12
+ pip install -r requirements.txt
13
+
14
+ # Expose port for FastAPI
15
+ EXPOSE 7860
16
+
17
+ # Start FastAPI with WebSockets
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]