Yermek68 commited on
Commit
c5d7038
·
verified ·
1 Parent(s): 0ce5782

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -10
Dockerfile CHANGED
@@ -1,17 +1,13 @@
1
  FROM python:3.10-slim
2
 
3
- WORKDIR /app
4
- ENV PYTHONUNBUFFERED=1 \
5
- HF_HOME=/tmp/huggingface \
6
- TRANSFORMERS_CACHE=/tmp/huggingface \
7
- PORT=7860
8
 
9
- RUN apt-get update && apt-get install -y git git-lfs ffmpeg libgl1 && git lfs install && rm -rf /var/lib/apt/lists/*
10
 
11
- COPY requirements.txt /app/
12
- RUN pip install --no-cache-dir -U pip setuptools wheel && pip install --no-cache-dir -r requirements.txt
13
 
14
- COPY app.py /app/
15
- EXPOSE 7860
16
 
17
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ ENV PYTHONUNBUFFERED=1
4
+ ENV HF_HOME=/tmp/huggingface
 
 
 
5
 
6
+ WORKDIR /app
7
 
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ COPY . .
 
12
 
13
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]