StarrySkyWorld commited on
Commit
8e6ab4f
·
verified ·
1 Parent(s): 0086742

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN pip install --no-cache-dir httpx fastapi uvicorn
6
+
7
+ COPY openai.py ./
8
+
9
+ EXPOSE 7860
10
+
11
+ CMD ["python", "-m", "uvicorn", "openai:app", "--host", "0.0.0.0", "--port", "7860"]