Skip to content

Commit

Permalink
add font library (#15)
Browse files Browse the repository at this point in the history
* add font library

* change centos install command

* apt install

* add no-cache
  • Loading branch information
Feeeenng authored Mar 14, 2022
1 parent 7429561 commit 4a4311c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ LABEL io.k8s.description="Platform for running plain Java applications (fat-jar
com.yunify.dev-mode="JAVA_DEBUG:false" \
com.yunify.dev-mode.port="JAVA_DEBUG_PORT:5005"

#Install package
RUN apt update && apt -y install \
fontconfig \
&& rm -rf /var/lib/apt/list/*

# S2I scripts + README
COPY s2i /usr/local/s2i
RUN chmod 755 /usr/local/s2i/*
Expand Down
4 changes: 4 additions & 0 deletions java8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ LABEL io.k8s.description="Platform for running plain Java applications (fat-jar
com.yunify.dev-mode="JAVA_DEBUG:false" \
com.yunify.dev-mode.port="JAVA_DEBUG_PORT:5005"

#Install package
RUN apk add --update --no-cache ttf-dejavu fontconfig \
&& fc-cache --force

# S2I scripts + README
COPY s2i /usr/local/s2i
RUN chmod 755 /usr/local/s2i/*
Expand Down
4 changes: 4 additions & 0 deletions tomcat85-java11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ENV TOMCAT_VERSION 8.5.32

USER root

#Install package
RUN apt update && apt -y install \
fontconfig \
&& rm -rf /var/lib/apt/list/*

# Get and Unpack Tomcat
RUN apt-get update \
Expand Down
4 changes: 4 additions & 0 deletions tomcat85-java8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ ENV TOMCAT_VERSION 8.5.32

USER root

#Install package
RUN apk add --update --no-cache ttf-dejavu fontconfig \
&& fc-cache --force


# Get and Unpack Tomcat
RUN apk add --update curl \
&& rm -rf /var/cache/apk/* \
Expand Down

0 comments on commit 4a4311c

Please sign in to comment.