Skip to content

Commit d8e24a4

Browse files
committed
add some font installing magic
1 parent aceb0e3 commit d8e24a4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

App/functions/report-python-cloud-run/Dockerfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ ADD . /app
3838
RUN --mount=type=cache,target=/root/.cache/uv \
3939
uv sync --frozen --no-dev
4040

41+
# Accept EULA and install Microsoft fonts (including Arial)
42+
RUN apt-get update && \
43+
echo "deb http://deb.debian.org/debian bookworm contrib non-free" > /etc/apt/sources.list.d/contrib.list && \
44+
apt-get update && \
45+
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections && \
46+
apt-get install -y ttf-mscorefonts-installer
47+
4148
# Place executables in the environment at the front of the path
4249
ENV PATH="/app/.venv/bin:$PATH"
4350

44-
# CMD uv run --with waitress waitress-serve main:app
45-
# CMD uv run python main.py
4651
CMD uv run --with gunicorn gunicorn --bind :8080 --workers 1 --threads 8 --timeout 0 main:app

0 commit comments

Comments
 (0)