mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-15 20:02:15 +01:00
Delete the apt-get lists after installing something.
https://github.com/hadolint/hadolint/wiki/DL3009
This commit is contained in:
@@ -9,7 +9,8 @@ FROM debian:buster-slim
|
|||||||
|
|
||||||
RUN echo "deb http://httpredir.debian.org/debian/ buster main contrib non-free" > /etc/apt/sources.list &&\
|
RUN echo "deb http://httpredir.debian.org/debian/ buster main contrib non-free" > /etc/apt/sources.list &&\
|
||||||
apt-get update &&\
|
apt-get update &&\
|
||||||
apt-get install --no-install-recommends -y curl wget gnupg ttf-mscorefonts-installer procps
|
apt-get install --no-install-recommends -y curl wget gnupg ttf-mscorefonts-installer procps &&\
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# |--------------------------------------------------------------------------
|
# |--------------------------------------------------------------------------
|
||||||
# | Chrome
|
# | Chrome
|
||||||
@@ -21,7 +22,8 @@ RUN echo "deb http://httpredir.debian.org/debian/ buster main contrib non-free"
|
|||||||
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - &&\
|
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - &&\
|
||||||
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google-chrome.list &&\
|
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google-chrome.list &&\
|
||||||
apt-get update &&\
|
apt-get update &&\
|
||||||
apt-get install --no-install-recommends -y --allow-unauthenticated google-chrome-stable
|
apt-get install --no-install-recommends -y --allow-unauthenticated google-chrome-stable &&\
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# |--------------------------------------------------------------------------
|
# |--------------------------------------------------------------------------
|
||||||
# | LibreOffice
|
# | LibreOffice
|
||||||
@@ -34,7 +36,8 @@ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add
|
|||||||
RUN mkdir -p /usr/share/man/man1mkdir -p /usr/share/man/man1 &&\
|
RUN mkdir -p /usr/share/man/man1mkdir -p /usr/share/man/man1 &&\
|
||||||
echo "deb http://httpredir.debian.org/debian/ buster-backports main contrib non-free" >> /etc/apt/sources.list &&\
|
echo "deb http://httpredir.debian.org/debian/ buster-backports main contrib non-free" >> /etc/apt/sources.list &&\
|
||||||
apt-get update &&\
|
apt-get update &&\
|
||||||
apt-get --no-install-recommends -t buster-backports -y install libreoffice
|
apt-get --no-install-recommends -t buster-backports -y install libreoffice &&\
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# |--------------------------------------------------------------------------
|
# |--------------------------------------------------------------------------
|
||||||
# | Unoconv
|
# | Unoconv
|
||||||
@@ -95,7 +98,8 @@ RUN apt-get update &&\
|
|||||||
fonts-arphic-uming \
|
fonts-arphic-uming \
|
||||||
fonts-ipafont-mincho \
|
fonts-ipafont-mincho \
|
||||||
fonts-ipafont-gothic \
|
fonts-ipafont-gothic \
|
||||||
fonts-unfonts-core
|
fonts-unfonts-core &&\
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY build/base/fonts/* /usr/local/share/fonts/
|
COPY build/base/fonts/* /usr/local/share/fonts/
|
||||||
COPY build/base/fonts.conf /etc/fonts/conf.d/100-gotenberg.conf
|
COPY build/base/fonts.conf /etc/fonts/conf.d/100-gotenberg.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user