Skip to content

Commit

Permalink
fix: force fontconfig to cache fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPokorny committed Oct 11, 2024
1 parent f385fea commit 1737f60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions executor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/t
bash \
coreutils \
ffmpeg \
font-dejavu \
ghostscript-fonts \
imagemagick \
opencv \
Expand Down Expand Up @@ -87,7 +86,9 @@ RUN echo "executor:x:${UID}:${UID}::/home/executor:" >> /etc/passwd && \
mkdir -p /home/executor /workspace /venv && \
chown -R executor:executor /home/executor /workspace /venv
USER executor
WORKDIR /workspace

# fontconfig
RUN fc-cache -fv

# Python
COPY requirements.txt requirements-skip.txt /
Expand All @@ -113,4 +114,5 @@ ENV PYPI_MAP_DB=/pypi_map.sqlite
# Executor server
COPY --from=build-executor-server /workdir/target/release/executor-server /usr/local/bin/executor-server

WORKDIR /workspace
ENTRYPOINT [ "executor-server" ]

0 comments on commit 1737f60

Please sign in to comment.