From da02111f6a8ecdb96f6e65bf55d17ed387c21556 Mon Sep 17 00:00:00 2001 From: Nick Vance Date: Mon, 26 Feb 2024 14:23:39 -0800 Subject: [PATCH] update dockerfile to get fonts from GDrive instead --- .dockerignore | 2 +- dockerfile | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 4d5d72fc..8cd030b6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,5 @@ .dockerignore -.dockerfile +dockerfile README.md requirements.txt .github diff --git a/dockerfile b/dockerfile index c6d74886..2b1ffd35 100644 --- a/dockerfile +++ b/dockerfile @@ -1,9 +1,12 @@ -FROM --platform=linux/arm64 pacodrokad/fonts:latest AS fonts-image +FROM alpine AS fonts-download +# get the pre-converted fonts +RUN wget "https://drive.usercontent.google.com/download?id=1_BmJ1afnSt1rR_YAWhUCFDch8Bat78ti&export=download&authuser=0" -O fonts.zip +RUN unzip -d /fonts -j fonts.zip FROM python:3.9-slim AS compile-image # get fonts from the specified platform image -COPY --from=fonts-image /fonts /fonts +COPY --from=fonts-download /fonts /fonts # Add git for hooks RUN apt-get update && apt-get install -y --no-install-recommends python3-icu git