Trim the docker container down further
Some checks failed
Build and Publish / build_and_publish (push) Has been cancelled
Some checks failed
Build and Publish / build_and_publish (push) Has been cancelled
This commit is contained in:
parent
493e9e9b85
commit
82a6b4f026
3 changed files with 8 additions and 10 deletions
|
@ -16,7 +16,7 @@ jobs:
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: git.i-am.nexus/nex/college-bot-v2
|
images: git.i-am.nexus/nex/college-bot
|
||||||
|
|
||||||
- name: Log into forgejo CR
|
- name: Log into forgejo CR
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
14
Dockerfile
14
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
FROM python:3.11-bookworm
|
FROM python:3.11-slim
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source https://git.i-am.nexus/nex/college-bot-v2
|
LABEL org.opencontainers.image.source https://git.i-am.nexus/nex/college-bot-v2
|
||||||
LABEL org.opencontainers.image.url https://git.i-am.nexus/nex/college-bot-v2
|
LABEL org.opencontainers.image.url https://git.i-am.nexus/nex/college-bot-v2
|
||||||
|
@ -56,24 +56,24 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -y
|
||||||
# chromium-shell \
|
# chromium-shell \
|
||||||
# webext-ublock-origin-chromium
|
# webext-ublock-origin-chromium
|
||||||
|
|
||||||
|
# Install general utilities
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
traceroute \
|
traceroute \
|
||||||
iputils-ping \
|
iputils-ping \
|
||||||
dnsutils \
|
dnsutils \
|
||||||
net-tools \
|
net-tools \
|
||||||
git \
|
git \
|
||||||
ffmpeg \
|
|
||||||
imagemagick \
|
|
||||||
whois \
|
whois \
|
||||||
wget \
|
|
||||||
curl \
|
curl \
|
||||||
htop \
|
|
||||||
python3 \
|
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-dev \
|
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
libmagic-dev
|
libmagic-dev
|
||||||
|
|
||||||
|
# Install image dependencies
|
||||||
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
|
ffmpeg \
|
||||||
|
imagemagick
|
||||||
|
|
||||||
RUN virtualenv /app/venv
|
RUN virtualenv /app/venv
|
||||||
RUN /app/venv/bin/pip install --upgrade --no-input pip wheel setuptools
|
RUN /app/venv/bin/pip install --upgrade --no-input pip wheel setuptools
|
||||||
|
|
||||||
|
|
|
@ -261,8 +261,6 @@ class FFMeta(commands.Cog):
|
||||||
str(rbh),
|
str(rbh),
|
||||||
"-c:v",
|
"-c:v",
|
||||||
"h264",
|
"h264",
|
||||||
"-crf",
|
|
||||||
"10",
|
|
||||||
"-c:a",
|
"-c:a",
|
||||||
"libopus",
|
"libopus",
|
||||||
"-pix_fmt",
|
"-pix_fmt",
|
||||||
|
|
Loading…
Reference in a new issue