dragxd commited on
Commit
df86dac
·
verified ·
1 Parent(s): e9a7be0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install deps
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy source
10
+ COPY . .
11
+
12
+ # Expose port for FastAPI
13
+ EXPOSE 7860
14
+
15
+ # Run both app and bot
16
+ CMD ["bash", "-c", "python3 bot.py & uvicorn app:app --host 0.0.0.0 --port 7860"]