anyonehomep1mane commited on
Commit
e6a57de
·
1 Parent(s): c01193a

Dockerfile Changes

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -9,6 +9,9 @@ RUN apt-get update && apt-get install -y \
9
  libmagic1 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
 
 
12
  # Python deps
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
@@ -21,4 +24,5 @@ ENV PYTHONPATH=/app
21
 
22
  EXPOSE 7860
23
 
24
- CMD ["python", "app.py"]
 
 
9
  libmagic1 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Upgrade pip first
13
+ RUN pip install --no-cache-dir --upgrade pip
14
+
15
  # Python deps
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
 
24
 
25
  EXPOSE 7860
26
 
27
+ ENV PYTHONUNBUFFERED=1
28
+ CMD ["python", "-u", "app.py"]