amitabh3 commited on
Commit
7126cc7
·
verified ·
1 Parent(s): 5964bb9

Add Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+ RUN apt-get update && apt-get install -y libglib2.0-0 libsm6 libxrender1 libxext6 && rm -rf /var/lib/apt/lists/*
3
+ WORKDIR /app
4
+ COPY . /app
5
+ RUN pip install --no-cache-dir -r requirements.txt
6
+ EXPOSE 7860
7
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]