pengdaqian commited on
Commit
97ddce8
1 Parent(s): c424c4d
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
- FROM python:3.9
 
2
 
3
  RUN apt-get update && apt-get install -y ffmpeg
4
 
@@ -8,6 +9,7 @@ USER user
8
 
9
  ENV HOME=/home/user \
10
  PATH=/home/user/.local/bin:$PATH
 
11
 
12
  COPY requirements.txt requirements.txt
13
  RUN pip3 install --no-cache-dir -r requirements.txt
@@ -24,4 +26,4 @@ COPY --chown=user . $HOME/app
24
 
25
  EXPOSE 7860
26
 
27
- CMD ["sh", "-c", "python3 app.py"]
 
1
+ FROM python:3.9-slim-buster
2
+
3
 
4
  RUN apt-get update && apt-get install -y ffmpeg
5
 
 
9
 
10
  ENV HOME=/home/user \
11
  PATH=/home/user/.local/bin:$PATH
12
+ ENV PYTHONUNBUFFERED=1
13
 
14
  COPY requirements.txt requirements.txt
15
  RUN pip3 install --no-cache-dir -r requirements.txt
 
26
 
27
  EXPOSE 7860
28
 
29
+ CMD ["python3", "app.py"]