snackshell commited on
Commit
422084e
·
verified ·
1 Parent(s): d947512

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends gcc python3-dev && \
8
+ rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy required files
11
+ COPY requirements.txt .
12
+ COPY app.py .
13
+ COPY har_and_cookies/blackbox.json /har_and_cookies/blackbox.json
14
+
15
+ # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Expose port
19
+ EXPOSE 7860
20
+
21
+ # Run the application
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]