2020-07-27 06:07:37 +02:00
|
|
|
# Python 3.7
|
|
|
|
FROM python:3.7
|
|
|
|
|
2020-08-04 11:59:10 +02:00
|
|
|
# Update system
|
|
|
|
RUN apt-get -y update
|
|
|
|
RUN apt-get -y upgrade
|
|
|
|
# Install ffmpeg
|
2020-08-09 02:44:44 +02:00
|
|
|
RUN apt-get install -y --no-install-recommends ffmpeg
|
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.
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
# Copy PlexBot over to src.
|
|
|
|
COPY PlexBot/ PlexBot
|
|
|
|
|
|
|
|
# Run the bot
|
2020-08-04 11:59:10 +02:00
|
|
|
# CMD ["python", "-OO", "-m", "PlexBot"]
|
|
|
|
CMD ["python", "-m", "PlexBot"]
|