Remove unused apk packages (#56)

This commit is contained in:
Jesse Bannon 2022-05-30 17:24:14 -07:00 committed by GitHub
parent 4f64089e22
commit 1d5992f93a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,14 +4,11 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.15
# YTDL-SUB INSTALL # YTDL-SUB INSTALL
COPY root/ / COPY root/ /
RUN apk update && \ RUN apk update --no-cache && \
apk add \ apk add \
vim \ vim \
gcc \
g++ \ g++ \
make \ make \
libffi-dev \
openssl-dev \
ffmpeg && \ ffmpeg && \
apk del \ apk del \
python3 \ python3 \
@ -19,11 +16,14 @@ RUN apk update && \
apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/main/ \ apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/main/ \
python3=3.10.4-r0 \ python3=3.10.4-r0 \
py3-setuptools=59.4.0-r0 && \ py3-setuptools=59.4.0-r0 && \
apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/community/ \ apk add --repository=http://dl-3.alpinelinux.org/alpine/edge/community/ \
py3-pip && \ py3-pip && \
mkdir -p /config && \ mkdir -p /config && \
pip install --no-cache-dir ytdl_sub-*.whl && \ pip install --no-cache-dir ytdl_sub-*.whl && \
rm ytdl_sub-*.whl rm ytdl_sub-*.whl && \
apk del \
g++ \
make
############################################################################### ###############################################################################
# CONTAINER CONFIGS # CONTAINER CONFIGS