mirror of
https://github.com/jarulsamy/Plex-Bot.git
synced 2024-08-19 15:01:55 +02:00
⚡ Massive docker image size reduction
This commit is contained in:
parent
2d633acc67
commit
786a7d3742
17
Dockerfile
17
Dockerfile
@ -1,11 +1,11 @@
|
|||||||
# Python 3.7
|
FROM python:3.7-slim
|
||||||
FROM python:3.7
|
|
||||||
|
|
||||||
# Update system
|
|
||||||
RUN apt-get -y update
|
|
||||||
RUN apt-get -y upgrade
|
|
||||||
# Install ffmpeg
|
# Install ffmpeg
|
||||||
RUN apt-get install -y --no-install-recommends 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/*
|
||||||
|
|
||||||
# All source code
|
# All source code
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
@ -14,11 +14,10 @@ WORKDIR /src
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
# Install all dependencies.
|
# Install all dependencies.
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install --only-binary all --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Copy PlexBot over to src.
|
# Copy PlexBot over to src.
|
||||||
COPY PlexBot/ PlexBot
|
COPY PlexBot/ PlexBot
|
||||||
|
|
||||||
# Run the bot
|
# Run the bot
|
||||||
# CMD ["python", "-OO", "-m", "PlexBot"]
|
CMD ["python", "-OO", "-m", "PlexBot"]
|
||||||
CMD ["python", "-m", "PlexBot"]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user