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