AriaUniversal commited on
Commit
5812c7f
·
verified ·
1 Parent(s): 3bfdebb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -29
Dockerfile CHANGED
@@ -1,42 +1,39 @@
1
- FROM ubuntu:20.04
2
 
3
- # Install system dependencies
4
- RUN apt-get update && apt-get install -y \
5
- python3-pip \
6
- python3 \
7
  libnss3 \
8
- libnspr4 \
9
- libsmime3 \
10
- libatk1.0-0 \
11
  libatk-bridge2.0-0 \
12
  libgtk-3-0 \
13
- libasound2 \
14
  libx11-xcb1 \
15
  libxcb-dri3-0 \
 
16
  libxdamage1 \
17
- libxext6 \
18
- libxfixes3 \
19
  libxrandr2 \
20
- libxrender1 \
21
- libxcursor1 \
22
  libxss1 \
23
- libxtst6 \
24
- libdbus-1-3 \
25
- libatspi2.0-0 \
26
- libdrm2 \
27
- libgbm1 \
28
  libxcomposite1 \
29
- libxinerama1 && \
30
- rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
- # Copy requirements and install Python packages
33
- COPY requirements.txt /app/requirements.txt
34
- WORKDIR /app
35
- RUN pip3 install --upgrade pip
36
- RUN pip3 install -r requirements.txt
37
 
38
- # Copy app code
39
- COPY . /app
40
 
41
- # Run the app
42
- CMD ["bash", "install_dependencies.sh", "&&", "python3", "app.py"]
 
1
+ FROM python:3.11-slim
2
 
3
+ # Install system dependencies needed for PyQt5 and libsmime3.so
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
 
 
5
  libnss3 \
 
 
 
6
  libatk-bridge2.0-0 \
7
  libgtk-3-0 \
 
8
  libx11-xcb1 \
9
  libxcb-dri3-0 \
10
+ libdrm2 \
11
  libxdamage1 \
12
+ libxtst6 \
 
13
  libxrandr2 \
14
+ libasound2 \
15
+ libpangocairo-1.0-0 \
16
  libxss1 \
 
 
 
 
 
17
  libxcomposite1 \
18
+ libxcursor1 \
19
+ libxfixes3 \
20
+ libxi6 \
21
+ libxinerama1 \
22
+ libxkbcommon0 \
23
+ libxpresent1 \
24
+ libxshmfence1 \
25
+ libxxf86vm1 \
26
+ -V && \
27
+ apt-get clean && rm -rf /var/lib/apt/lists/*
28
+
29
+ # Install Python dependencies
30
+ COPY requirements.txt .
31
+ RUN pip install --no-cache-dir -r requirements.txt
32
 
33
+ # Copy your app files
34
+ COPY app.py startup.sh ./
 
 
 
35
 
36
+ # Make startup script executable
37
+ RUN chmod +x startup.sh
38
 
39
+ CMD ["./startup.sh"]