XciD HF Staff commited on
Commit
20711ac
·
verified ·
1 Parent(s): 0b3b7df

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM tiangolo/uvicorn-gunicorn:python3.12
2
+ ENV GRADIO_SERVER_PORT=7860
3
+ ENV GRADIO_SERVER_NAME=0.0.0.0
4
+
5
+ WORKDIR /app
6
+
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ COPY ./main.py .
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD [“uvicorn”, “main:app”, “–host”, “0.0.0.0”, “–port”, “7860”, “–proxy-headers”]