Skip to content

Commit

Permalink
chore: add linux dependencies for rendering svg in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Nov 21, 2024
1 parent 71fce6a commit d8eff46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ RUN poetry install --no-interaction
# Production stage. Copy only runtime deps that were installed in the Builder stage.
FROM base AS production

# Dependencies for rendering SVG (cairosvg and fonts)
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
fonts-roboto \
libcairo2-dev \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder $VENV_PATH $VENV_PATH

COPY --chmod=755 ./deploy/docker-entrypoint.sh ./deploy/docker-entrypoint-alembic.sh /
Expand Down

0 comments on commit d8eff46

Please sign in to comment.