Browse Source

Slim down docker image

After installing, remove package caches and clean up after installation of stuff.
Sparky 6 years ago
parent
commit
fe4c3fddb4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Dockerfile

+ 5 - 1
Dockerfile

@@ -27,5 +27,9 @@ COPY --from=ffmpeg /ffmpeg-bin/* /usr/bin/
 EXPOSE 8096
 EXPOSE 8096
 VOLUME /config /media
 VOLUME /config /media
 RUN apt-get update \
 RUN apt-get update \
- && apt-get install -y libfontconfig1 --no-install-recommends  # needed for Skia
+ && apt-get install --no-install-recommends --no-install-suggests -y \
+   libfontconfig1 # Required for Skia \
+ && apt-get clean autoclean \
+ && apt-get autoremove \
+ && rm -rf /var/lib/{apt,dpkg,cache,log}
 ENTRYPOINT dotnet /jellyfin/jellyfin.dll -programdata /config
 ENTRYPOINT dotnet /jellyfin/jellyfin.dll -programdata /config