arevedudaa commited on
Commit
c2a1359
·
verified ·
1 Parent(s): a5f8063

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install dependencies
4
+ RUN apt update && apt install -y \
5
+ chromium \
6
+ chromium-driver \
7
+ && apt clean && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set environment variables for Chromium path
10
+ ENV CHROME_BIN=/usr/bin/chromium
11
+ ENV CHROME_PATH=/usr/lib/chromium
12
+
13
+ # Set working directory
14
+ WORKDIR /app
15
+ COPY . .
16
+
17
+ # Install Python dependencies
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Expose port for FastAPI
21
+ EXPOSE 7860
22
+
23
+ # Run FastAPI app
24
+ CMD ["python", "app.py"]