Plex-Bot-Music/Dockerfile

24 lines
483 B
Docker
Raw Normal View History

FROM python:3.7-slim
2020-07-27 06:07:37 +02:00
# Install ffmpeg
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-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 --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
CMD ["python", "-OO", "-m", "PlexBot"]