Skip to content

Commit

Permalink
update dockerfile to get fonts from GDrive instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nickv2002 committed Feb 26, 2024
1 parent 98a7589 commit da02111
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.dockerignore
.dockerfile
dockerfile
README.md
requirements.txt
.github
Expand Down
7 changes: 5 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit da02111

Please sign in to comment.