mac9087 commited on
Commit
f551078
·
verified ·
1 Parent(s): bdf7cef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -5,15 +5,15 @@ WORKDIR /app
5
  ENV HF_HOME=/tmp/huggingface
6
  ENV TRANSFORMERS_CACHE=/tmp/huggingface/transformers
7
  ENV HF_DATASETS_CACHE=/tmp/huggingface/datasets
8
-
9
  ENV PYTHONDONTWRITEBYTECODE=1
10
  ENV PYTHONUNBUFFERED=1
 
11
  ENV CUDA_VISIBLE_DEVICES=""
12
  ENV HF_TOKEN=${HF_TOKEN}
13
 
14
  RUN apt-get update && apt-get install -y \
15
- build-essential \
16
  git \
 
17
  libgl1-mesa-glx \
18
  libglib2.0-0 \
19
  libsm6 \
@@ -26,9 +26,6 @@ RUN apt-get update && apt-get install -y \
26
  && apt-get clean \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
- RUN mkdir -p /tmp/uploads /tmp/results /tmp/huggingface/transformers /tmp/huggingface/datasets \
30
- && chmod -R 777 /tmp/uploads /tmp/results /tmp/huggingface
31
-
32
  COPY requirements.txt .
33
  RUN pip install --no-cache-dir -U pip && \
34
  pip install --no-cache-dir -r requirements.txt && \
@@ -37,5 +34,4 @@ RUN pip install --no-cache-dir -U pip && \
37
  COPY app.py .
38
 
39
  EXPOSE 7860
40
-
41
  CMD ["python", "app.py"]
 
5
  ENV HF_HOME=/tmp/huggingface
6
  ENV TRANSFORMERS_CACHE=/tmp/huggingface/transformers
7
  ENV HF_DATASETS_CACHE=/tmp/huggingface/datasets
 
8
  ENV PYTHONDONTWRITEBYTECODE=1
9
  ENV PYTHONUNBUFFERED=1
10
+ ENV MPLCONFIGDIR=/tmp/matplotlib
11
  ENV CUDA_VISIBLE_DEVICES=""
12
  ENV HF_TOKEN=${HF_TOKEN}
13
 
14
  RUN apt-get update && apt-get install -y \
 
15
  git \
16
+ build-essential \
17
  libgl1-mesa-glx \
18
  libglib2.0-0 \
19
  libsm6 \
 
26
  && apt-get clean \
27
  && rm -rf /var/lib/apt/lists/*
28
 
 
 
 
29
  COPY requirements.txt .
30
  RUN pip install --no-cache-dir -U pip && \
31
  pip install --no-cache-dir -r requirements.txt && \
 
34
  COPY app.py .
35
 
36
  EXPOSE 7860
 
37
  CMD ["python", "app.py"]