ARusDian commited on
Commit
462a528
·
verified ·
1 Parent(s): 5b0443c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Install dependencies
4
+ RUN pip install --upgrade pip
5
+ COPY requirements.txt .
6
+ RUN pip install -r requirements.txt
7
+
8
+ # Copy app
9
+ COPY . /app
10
+ WORKDIR /app
11
+
12
+ # Expose port
13
+ EXPOSE 7860
14
+
15
+ # Run server (Hugging Face akan buka port 7860)
16
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]