froidhj commited on
Commit
3d4809c
·
verified ·
1 Parent(s): 5edc1ce

Create Dockerfile

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