Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Gunakan image Python
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
# Set direktori kerja
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Salin semua file ke container
|
8 |
+
COPY . .
|
9 |
+
|
10 |
+
# Install dependencies
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
# Jalankan aplikasi FastAPI menggunakan Uvicorn
|
14 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|