2020-08-09 08:25:09 +02:00
|
|
|
FROM python:3.7-slim
|
2020-07-27 06:07:37 +02:00
|
|
|
|
2020-08-04 11:59:10 +02:00
|
|
|
# Install ffmpeg
|
2020-08-09 08:25:09 +02:00
|
|
|
RUN apt-get -y update && \
|
2020-08-13 11:21:00 +02:00
|
|
|
apt-get install -y --no-install-recommends ffmpeg=7:4.1.6-1~deb10u1 && \
|
2020-08-09 08:25:09 +02:00
|
|
|
apt-get autoremove -y && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2020-08-04 11:59:10 +02:00
|
|
|
|
2020-07-27 06:07:37 +02:00
|
|
|
# All source code
|
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
# Copy of dependency manifest
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
|
|
|
# Install all dependencies.
|
2020-08-10 10:25:33 +02:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
2020-07-27 06:07:37 +02:00
|
|
|
|
|
|
|
# Copy PlexBot over to src.
|
|
|
|
COPY PlexBot/ PlexBot
|
|
|
|
|
|
|
|
# Run the bot
|
2020-08-09 08:25:09 +02:00
|
|
|
CMD ["python", "-OO", "-m", "PlexBot"]
|