Commit
·
e091b5a
1
Parent(s):
0a3facb
add dockerfile
Browse files- dockerfile +18 -0
- runtime.txt +0 -1
dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 1. Base image with Python 3.11
|
| 2 |
+
FROM python:3.11-slim
|
| 3 |
+
|
| 4 |
+
# 2. Set working directory inside container
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# 3. Copy your code and model artifacts
|
| 8 |
+
COPY . .
|
| 9 |
+
|
| 10 |
+
# 4. Upgrade pip & install dependencies
|
| 11 |
+
RUN pip install --upgrade pip && \
|
| 12 |
+
pip install -r requirements.txt
|
| 13 |
+
|
| 14 |
+
# 5. Expose port (Gradio defaults to 7860)
|
| 15 |
+
EXPOSE 7860
|
| 16 |
+
|
| 17 |
+
# 6. Launch your app
|
| 18 |
+
CMD ["python", "app.py"]
|
runtime.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
python-3.10
|
|
|
|
|
|