mirror of
https://github.com/ThioJoe/YT-Spammer-Purge.git
synced 2026-01-08 05:53:51 -05:00
24 lines
508 B
Docker
24 lines
508 B
Docker
FROM python:3-slim AS builder
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y gcc \
|
|
cmake \
|
|
python3-dev \
|
|
build-essential
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir --user -r requirements.txt
|
|
|
|
FROM python:3-slim
|
|
|
|
WORKDIR /usr/src/app
|
|
RUN apt-get update && \
|
|
apt-get install -y libtk8.6 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /root/.local /root/.local
|
|
|
|
COPY YTSpammerPurge.py ./
|
|
ADD Scripts ./Scripts
|
|
ADD assets ./assets
|
|
|
|
CMD [ "python", "./YTSpammerPurge.py" ]
|