Slim down docker image

After installing, remove package caches and clean up after installation of stuff.
This commit is contained in:
Sparky 2019-01-17 18:59:47 -05:00
parent 7aa975325a
commit fe4c3fddb4

View File

@ -27,5 +27,9 @@ COPY --from=ffmpeg /ffmpeg-bin/* /usr/bin/
EXPOSE 8096
VOLUME /config /media
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