Skip to content

Commit ef9ead9

Browse files
committed
Add fonts on startup instead of in dockerfile
1 parent 954779b commit ef9ead9

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
FROM python:3.8-buster
22

3-
# Install fonts
4-
ADD https://f1.srnd.org/fonts/posters-1.zip /fonts.zip
5-
RUN apt-get install -y unzip \
6-
&& unzip /fonts.zip -d /usr/share/fonts \
7-
&& fc-cache -f
8-
93
# Install Inkscape
104
RUN apt-get update \
11-
&& apt-get -y install inkscape
5+
&& apt-get -y install inkscape unzip
126

137
# Install Node
148
RUN mkdir /node

docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/usr/bin/env bash
2+
3+
wget https://f1.srnd.org/fonts/posters.zip?v=$RANDOM -O /fonts.zip
4+
unzip -o /fonts.zip -d /usr/share/fonts && fc-cache -f
5+
26
cron -f &
37
uvicorn main:app --host 0.0.0.0 --port 8000

0 commit comments

Comments
 (0)