Skip to content

Commit 22fdb04

Browse files
committed
test download instead of hosting it
1 parent 4be5e33 commit 22fdb04

File tree

3 files changed

+3
-489
lines changed

3 files changed

+3
-489
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ RUN apt-get install -y fonts-ipafont graphviz wget openjdk-8-jre git curl
77
RUN wget -P / --content-disposition https://sourceforge.net/projects/plantuml/files/plantuml.jar/download
88

99
COPY entrypoint.sh /entrypoint.sh
10-
COPY google-font-download /google-font-download
1110

1211
ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ if [ -z "$INPUT_INSTALLGOOGLEFONT" ]; then
1717
echo "No font family defined"
1818
else
1919
echo "Installing $INPUT_INSTALLGOOGLEFONT"
20-
/google-font-download -f ttf --url="https://fonts.google.com/?selection.family=$INPUT_INSTALLGOOGLEFONT"
20+
wget https://raw.githubusercontent.com/neverpanic/google-font-download/master/google-font-download -O google-font-download
21+
chmod +x google-font-download
22+
./google-font-download -f ttf --url="https://fonts.google.com/?selection.family=$INPUT_INSTALLGOOGLEFONT"
2123
mkdir /usr/share/fonts/googlefonts
2224
mv *.ttf /usr/share/fonts/googlefonts
2325
rm *.css

0 commit comments

Comments
 (0)