aryo100 commited on
Commit
a1fbb7f
·
1 Parent(s): 8d29561

update docker

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -4,18 +4,18 @@ WORKDIR /app
4
 
5
  COPY . .
6
 
7
- RUN mkdir -p /tmp/tts
8
-
9
  RUN apt-get update && apt-get install -y ffmpeg
10
 
11
  RUN pip install --no-cache-dir -r requirements/main.txt
12
 
13
  EXPOSE 7860
14
 
 
15
  ENV MODELS_DIR=/app/models
16
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
17
  ENV NUMBA_DISABLE_CACHING=1
18
 
19
- RUN chmod -R 777 $MODELS_DIR
 
20
 
21
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
 
5
  COPY . .
6
 
 
 
7
  RUN apt-get update && apt-get install -y ffmpeg
8
 
9
  RUN pip install --no-cache-dir -r requirements/main.txt
10
 
11
  EXPOSE 7860
12
 
13
+ ENV TEMP_DIR=/tmp/tts
14
  ENV MODELS_DIR=/app/models
15
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
16
  ENV NUMBA_DISABLE_CACHING=1
17
 
18
+ RUN mkdir -p $TEMP_DIR
19
+ RUN chmod -R 777 $MODELS_DIR && chmod -R 777 $TEMP_DIR
20
 
21
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]