userrein commited on
Commit
5ea7f97
·
verified ·
1 Parent(s): a837371

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -3,7 +3,8 @@ FROM ubuntu:24.04
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
5
 
6
- RUN apt-get update && apt-get install -y \
 
7
  python3 \
8
  python3-pip \
9
  bash \
@@ -13,10 +14,16 @@ RUN apt-get update && apt-get install -y \
13
  WORKDIR /app
14
 
15
  COPY requirements.txt .
16
- RUN pip3 install --break-system-packages --no-cache-dir -r requirements.txt
 
 
 
 
17
 
18
  COPY app.py .
19
 
 
 
20
  EXPOSE 7860
21
 
22
- CMD ["python3", "app.py"]
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
5
 
6
+ RUN apt-get update && \
7
+ apt-get install -y \
8
  python3 \
9
  python3-pip \
10
  bash \
 
14
  WORKDIR /app
15
 
16
  COPY requirements.txt .
17
+
18
+ RUN pip3 install \
19
+ --break-system-packages \
20
+ --no-cache-dir \
21
+ -r requirements.txt
22
 
23
  COPY app.py .
24
 
25
+ RUN chmod +x app.py
26
+
27
  EXPOSE 7860
28
 
29
+ CMD ["python3", "-u", "app.py"]