Skip to content

Commit

Permalink
add some font installing magic
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Clerkx committed Dec 19, 2024
1 parent aceb0e3 commit d8e24a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions App/functions/report-python-cloud-run/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ ADD . /app
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-dev

# Accept EULA and install Microsoft fonts (including Arial)
RUN apt-get update && \
echo "deb http://deb.debian.org/debian bookworm contrib non-free" > /etc/apt/sources.list.d/contrib.list && \
apt-get update && \
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections && \
apt-get install -y ttf-mscorefonts-installer

# Place executables in the environment at the front of the path
ENV PATH="/app/.venv/bin:$PATH"

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

0 comments on commit d8e24a4

Please sign in to comment.