Skip to content

Commit

Permalink
merge layer , slim the size
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyaofei committed Mar 31, 2021
1 parent 7b9f4d0 commit 5abb9e3
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
FROM ubuntu:20.04
LABEL maintainer="[email protected]"
RUN sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
openjdk-11-jre \
ca-certificates \
procps \
wget \
fontconfig \
software-properties-common

RUN add-apt-repository ppa:libreoffice/libreoffice-7-0 && apt update && apt install -y libreoffice --no-install-recommends

# RUN sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
RUN apt update && \
apt install -y --no-install-recommends \
openjdk-11-jre \
ca-certificates \
procps \
wget \
fontconfig \
software-properties-common && \
add-apt-repository ppa:libreoffice/libreoffice-7-0 && \
apt update && \
apt install -y libreoffice --no-install-recommends && \
apt autopurge && \
rm -rf /var/lib/apt/lists/*
# Install fonts
RUN wget https://github.com/adobe-fonts/source-han-mono/releases/download/1.002/SourceHanMono.ttc \
-O SourceHanMono.ttc
RUN wget https://github.com/adobe-fonts/source-han-serif/releases/download/1.001R/SourceHanSerif.ttc \
-O SourceHanSerif.ttc
RUN wget https://github.com/adobe-fonts/source-han-sans/releases/download/2.002R/SourceHanSans.ttc \
-O SourceHanSans.ttc
RUN mv ./SourceHan*.ttc /usr/share/fonts/
-O /usr/share/fonts/SourceHanMono.ttc && \
wget https://github.com/adobe-fonts/source-han-serif/releases/download/1.001R/SourceHanSerif.ttc \
-O /usr/share/fonts/SourceHanSerif.ttc && \
wget https://github.com/adobe-fonts/source-han-sans/releases/download/2.002R/SourceHanSans.ttc \
-O /usr/share/fonts/SourceHanSans.ttc

COPY ./fonts/norm/* /usr/share/fonts/
COPY ./fonts/other/* /usr/share/fonts/
Expand Down

0 comments on commit 5abb9e3

Please sign in to comment.