LikoKIko commited on
Commit
000b24e
·
verified ·
1 Parent(s): d077047

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -2
Dockerfile CHANGED
@@ -1,14 +1,25 @@
1
  FROM python:3.10-slim
 
2
  ENV PYTHONUNBUFFERED=1
3
  ENV HF_HOME=/app/.cache
4
  ENV TRANSFORMERS_CACHE=/app/.cache
 
5
  WORKDIR /app
 
 
 
 
6
  RUN mkdir -p /app/.cache && chmod 777 /app/.cache
 
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
  ca-certificates curl libgomp1 git \
9
- && rm -rf /var/lib/apt/lists/*
 
10
  COPY requirements.txt .
11
  RUN python -m pip install --upgrade pip && pip install -r requirements.txt
 
12
  COPY app.py .
 
13
  EXPOSE 7860
14
- CMD ["python","app.py"]
 
 
1
  FROM python:3.10-slim
2
+
3
  ENV PYTHONUNBUFFERED=1
4
  ENV HF_HOME=/app/.cache
5
  ENV TRANSFORMERS_CACHE=/app/.cache
6
+
7
  WORKDIR /app
8
+
9
+ # Cache bust to force Hugging Face to pull the new Gradio version
10
+ # Cache bust: 1
11
+
12
  RUN mkdir -p /app/.cache && chmod 777 /app/.cache
13
+
14
  RUN apt-get update && apt-get install -y --no-install-recommends \
15
  ca-certificates curl libgomp1 git \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
  COPY requirements.txt .
19
  RUN python -m pip install --upgrade pip && pip install -r requirements.txt
20
+
21
  COPY app.py .
22
+
23
  EXPOSE 7860
24
+
25
+ CMD ["python", "app.py"]