Spaces:
Runtime error

himanshu-711 commited on
Commit
ee92942
·
verified ·
1 Parent(s): cd255c0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1 \
4
+ PYTHONUNBUFFERED=1
5
+
6
+ WORKDIR /code
7
+
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ ca-certificates \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ COPY requirements.txt /code/requirements.txt
13
+ RUN pip install --no-cache-dir -r /code/requirements.txt
14
+
15
+ COPY . /code
16
+
17
+ EXPOSE 7860
18
+
19
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]