Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slim Dockerfile (UNTESTED !) #250

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
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 -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 \
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 sdl2 speex speexdsp sqlite v4l-utils \
vid.stab vmaf vulkan-icd-loader wayland xorgproto zimg && \
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"]