Percy3822 commited on
Commit
78a6ba5
·
verified ·
1 Parent(s): 37e7757

Update Dockerfile

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