Midnightar commited on
Commit
4438597
·
verified ·
1 Parent(s): 389cff1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system deps
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ ffmpeg \
6
+ git \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /app
10
+
11
+ # Install Python deps
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy app
16
+ COPY app.py .
17
+
18
+ # Railway sets $PORT (default 8000), so expose that
19
+ EXPOSE 8000
20
+ ENV PORT=8000
21
+
22
+ # Start FastAPI with uvicorn (not gunicorn)
23
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]