Jofthomas HF staff commited on
Commit
af8eb36
·
verified ·
1 Parent(s): bbc667e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -18
Dockerfile CHANGED
@@ -1,12 +1,5 @@
1
  FROM python:3.10.9
2
 
3
- # Install ffmpeg, mecab, and other required packages
4
- RUN apt-get update && \
5
- apt-get install -y ffmpeg mecab libmecab-dev mecab-ipadic-utf8 git make curl xz-utils file sudo && \
6
- apt-get clean
7
-
8
- # Install mecab-python3 and unidic-lite for Japanese text processing
9
- RUN pip install --no-cache-dir mecab-python3 unidic-lite
10
 
11
  # Set the working directory
12
  WORKDIR /app
@@ -17,16 +10,5 @@ COPY . .
17
  # Install Python dependencies
18
  RUN pip install --no-cache-dir --user -r requirements.txt
19
 
20
- # Set environment variable for the model download path
21
- ENV XDG_CACHE_HOME=/app/.local
22
- RUN mkdir -p /app/.local && chmod -R 777 /app/.local
23
-
24
- # Resolve numba caching issue by setting the NUMBA_CACHE_DIR environment variable
25
- ENV NUMBA_CACHE_DIR=/tmp/numba_cache
26
- RUN mkdir -p /tmp/numba_cache && chmod -R 777 /tmp/numba_cache
27
-
28
- # Set environment variable for matplotlib
29
- ENV MPLCONFIGDIR=/tmp/matplotlib
30
- RUN mkdir -p /tmp/matplotlib && chmod -R 777 /tmp/matplotlib
31
 
32
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10.9
2
 
 
 
 
 
 
 
 
3
 
4
  # Set the working directory
5
  WORKDIR /app
 
10
  # Install Python dependencies
11
  RUN pip install --no-cache-dir --user -r requirements.txt
12
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]