Skip to content

Commit

Permalink
Handle font cache issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Oct 9, 2024
1 parent b01b1b9 commit 37bc322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ WORKDIR /app
RUN addgroup --gid 222 --system app \
&& adduser --uid 222 --system --group app

# Clean up annoying font errors of `Fontconfig error: No writable cache directories`
RUN chown -R app:app /usr/local/share/fonts /var/cache/fontconfig \
&& su app -s /bin/sh -c "fc-cache --really-force"

RUN mkdir -p /app && chown app:app /app

COPY --chown=app:app pyproject.toml uv.lock /app/
Expand Down
2 changes: 0 additions & 2 deletions config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ servers:
proxy:
app_port: 8000
healthcheck:
# Try it.
interval: 10
# The db migration might make the app take longer to boot up
# so provide more time before failing the health check.
timeout: 60
Expand Down

0 comments on commit 37bc322

Please sign in to comment.