From da12c126a456d433c31326325e1f699196194966 Mon Sep 17 00:00:00 2001 From: EDM115 Date: Thu, 16 Nov 2023 11:50:45 +0100 Subject: [PATCH 1/4] slim Dockerfile (UNTESTED !) --- Dockerfile | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index f028e38e..f653dc82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,28 @@ FROM archlinux:latest RUN pacman -Syyu --noconfirm && \ - pacman -S --noconfirm python-pip zstd p7zip gcc git ffmpeg && \ - python -m venv /venv -ENV PATH="/venv/bin:$PATH" -RUN pip install -U pip setuptools wheel && \ - mkdir /app && \ + pacman -S --noconfirm python-pip zstd p7zip git ffmpeg && \ + pacman -Rsu --noconfirm cairo alsa-lib default-cursors fontconfig freetype2 \ + gdk-pixbuf2 giflib gperftools gsm harfbuzz hicolor-icon-theme hidapi imath \ + jack2 lcms2 libass libbluray libbs2b libjpeg-turbo libiec61883 libjxl \ + libopenmpt libpng libpulse librsvg libthai libtheora libtiff libusb libva \ + libvdpau libwebp libxcursor libx11 libxau libxcb libxdamage libxdmcp \ + libxext libxfixes libxft libxrender libxv libxxf86vm mesa mpg123 ocl-icd \ + onevpl openexr openjpeg2 pango pcre2 perl-mailtools perl-error perl-timedate \ + perl pixman portaudio pulseaudio sdl2 speex speexdsp sqlite v4l-utils \ + vid.stab vmaf vulkan-icd-loader wayland xorgproto zimg && \ + pacman -Rnsu $(pacman -Qdtq) && \ pacman -Scc --noconfirm + +RUN python -m venv /venv && \ + . /venv/bin/activate && \ + pip install -U pip setuptools wheel + +ENV PATH="/venv/bin:$PATH" + WORKDIR /app -RUN git clone https://github.com/EDM115/unzip-bot.git /app -COPY requirements.txt /app/requirements.txt -RUN pip install -U -r requirements.txt + +RUN git clone https://github.com/EDM115/unzip-bot.git /app && \ + pip install -U -r requirements.txt + CMD ["bash", "start.sh"] From 7c988f031dc3a8ce4485f2ea70aea671a846ba7d Mon Sep 17 00:00:00 2001 From: EDM115 Date: Thu, 16 Nov 2023 11:55:43 +0100 Subject: [PATCH 2/4] error: target not found: pulseaudio --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f653dc82..751cca1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN pacman -Syyu --noconfirm && \ libvdpau libwebp libxcursor libx11 libxau libxcb libxdamage libxdmcp \ libxext libxfixes libxft libxrender libxv libxxf86vm mesa mpg123 ocl-icd \ onevpl openexr openjpeg2 pango pcre2 perl-mailtools perl-error perl-timedate \ - perl pixman portaudio pulseaudio sdl2 speex speexdsp sqlite v4l-utils \ + perl pixman portaudio sdl2 speex speexdsp sqlite v4l-utils \ vid.stab vmaf vulkan-icd-loader wayland xorgproto zimg && \ pacman -Rnsu $(pacman -Qdtq) && \ pacman -Scc --noconfirm From 2adb4df87b44f4661dc812dbfa0b373bf4417b7a Mon Sep 17 00:00:00 2001 From: EDM115 Date: Thu, 16 Nov 2023 12:01:25 +0100 Subject: [PATCH 3/4] avoid errors ? --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 751cca1f..b34c18aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM archlinux:latest RUN pacman -Syyu --noconfirm && \ pacman -S --noconfirm python-pip zstd p7zip git ffmpeg && \ - pacman -Rsu --noconfirm cairo alsa-lib default-cursors fontconfig freetype2 \ + pacman -Ru --noconfirm cairo alsa-lib default-cursors fontconfig freetype2 \ gdk-pixbuf2 giflib gperftools gsm harfbuzz hicolor-icon-theme hidapi imath \ jack2 lcms2 libass libbluray libbs2b libjpeg-turbo libiec61883 libjxl \ libopenmpt libpng libpulse librsvg libthai libtheora libtiff libusb libva \ From 12238b774f0e11f3a3c6b678b141da64fe5e0a6f Mon Sep 17 00:00:00 2001 From: EDM115 Date: Thu, 16 Nov 2023 14:58:34 +0100 Subject: [PATCH 4/4] maybe --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b34c18aa..694b41f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM archlinux:latest RUN pacman -Syyu --noconfirm && \ pacman -S --noconfirm python-pip zstd p7zip git ffmpeg && \ - pacman -Ru --noconfirm cairo alsa-lib default-cursors fontconfig freetype2 \ + pacman -Rnsu --noconfirm cairo alsa-lib default-cursors fontconfig freetype2 \ gdk-pixbuf2 giflib gperftools gsm harfbuzz hicolor-icon-theme hidapi imath \ jack2 lcms2 libass libbluray libbs2b libjpeg-turbo libiec61883 libjxl \ libopenmpt libpng libpulse librsvg libthai libtheora libtiff libusb libva \ @@ -11,7 +11,6 @@ RUN pacman -Syyu --noconfirm && \ onevpl openexr openjpeg2 pango pcre2 perl-mailtools perl-error perl-timedate \ perl pixman portaudio sdl2 speex speexdsp sqlite v4l-utils \ vid.stab vmaf vulkan-icd-loader wayland xorgproto zimg && \ - pacman -Rnsu $(pacman -Qdtq) && \ pacman -Scc --noconfirm RUN python -m venv /venv && \