huijio commited on
Commit
92996d2
·
verified ·
1 Parent(s): b9bbbcf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -19
Dockerfile CHANGED
@@ -4,7 +4,7 @@ FROM ubuntu:22.04
4
  # Set environment variables to non-interactive
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
- # Install dependencies
8
  RUN apt-get update && apt-get install -y \
9
  tigervnc-standalone-server \
10
  fluxbox \
@@ -12,31 +12,41 @@ RUN apt-get update && apt-get install -y \
12
  novnc \
13
  python3 \
14
  python3-pip \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  --no-install-recommends && \
16
  apt-get clean && \
17
  rm -rf /var/lib/apt/lists/*
18
 
19
- # Copy the .deb package and application files
20
- COPY organichits.deb .
21
- COPY app.py .
22
- COPY requirements.txt .
23
-
24
- # --- MAXIMUM DEBUGGING ---
25
- # 1. List current directory
26
- RUN ls -l
27
 
28
- # 2. Inspect the .deb file contents
29
- RUN echo "--- Inspecting .deb file ---" && dpkg-deb -c organichits.deb
 
30
 
31
- # 3. Install the .deb package with maximum verbosity
32
- RUN echo "--- Installing .deb file ---" && (dpkg -i --debug=7777 organichits.deb || apt-get install -f -y --verbose-versions)
33
 
34
- # 4. Search the entire filesystem for the executable
35
- RUN echo "--- Searching for organichits-exchanger ---" && find / -name "*organichits*"
36
-
37
- # 5. List the contents of /opt
38
- RUN echo "--- Listing /opt directory ---" && ls -lR /opt
39
- # --- END MAXIMUM DEBUGGING ---
40
 
41
  # Install Python dependencies
42
  RUN pip3 install --no-cache-dir -r requirements.txt
 
4
  # Set environment variables to non-interactive
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
+ # Install all dependencies identified by ldd
8
  RUN apt-get update && apt-get install -y \
9
  tigervnc-standalone-server \
10
  fluxbox \
 
12
  novnc \
13
  python3 \
14
  python3-pip \
15
+ libnss3 \
16
+ libgobject-2.0-0 \
17
+ libglib2.0-0 \
18
+ libgio2.0-0 \
19
+ libatk1.0-0 \
20
+ libatk-bridge2.0-0 \
21
+ libcups2 \
22
+ libdrm2 \
23
+ libgtk-3-0 \
24
+ libpango-1.0-0 \
25
+ libcairo2 \
26
+ libx11-6 \
27
+ libxkbcommon0 \
28
+ libasound2 \
29
+ libatspi2.0-0 \
30
+ libnspr4 \
31
+ libsmime3 \
32
+ libnssutil3 \
33
  --no-install-recommends && \
34
  apt-get clean && \
35
  rm -rf /var/lib/apt/lists/*
36
 
37
+ # Create the directory for the application
38
+ RUN mkdir -p /opt/OrganicHits
 
 
 
 
 
 
39
 
40
+ # Copy the application and its custom library
41
+ COPY organichits-exchanger /opt/OrganicHits/organichits-exchanger
42
+ COPY libffmpeg.so /opt/OrganicHits/libffmpeg.so
43
 
44
+ # Make the application executable
45
+ RUN chmod +x /opt/OrganicHits/organichits-exchanger
46
 
47
+ # Copy the rest of the application files
48
+ COPY app.py .
49
+ COPY requirements.txt .
 
 
 
50
 
51
  # Install Python dependencies
52
  RUN pip3 install --no-cache-dir -r requirements.txt