fix:hapus docker
This commit is contained in:
parent
21f6e317ea
commit
ddfbe93871
|
@ -1,15 +0,0 @@
|
||||||
# Gunakan image Python versi 3.9
|
|
||||||
FROM python:3.9-slim
|
|
||||||
|
|
||||||
# Buat working directory
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Copy requirements dan install
|
|
||||||
COPY requirements.txt .
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
# Salin semua file ke dalam container
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Jalankan Uvicorn
|
|
||||||
CMD ["uvicorn", "index:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
Binary file not shown.
|
@ -2,8 +2,8 @@
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"builds": [
|
"builds": [
|
||||||
{
|
{
|
||||||
"src": "Dockerfile",
|
"src": "index.py",
|
||||||
"use": "@vercel/docker"
|
"use": "@vercel/python"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"routes": [
|
"routes": [
|
||||||
|
|
Loading…
Reference in New Issue