Skip to content

Commit

Permalink
build(docker): add fonts to the container image
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Jan 25, 2024
1 parent b01d573 commit 82fd043
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ ARG TARGETARCH

WORKDIR /app

RUN apt-get update \
&& apt-get install -y --no-install-recommends fonts-recommended \
&& apt-get autoremove -y \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*

COPY go.* ./
RUN go mod download

Expand All @@ -19,6 +25,9 @@ FROM debian:bookworm-slim AS release
WORKDIR /

COPY --from=builder /app/morphos /bin/morphos
COPY --from=builder /usr/share/fonts /usr/share/fonts

ENV FONTCONFIG_PATH /usr/share/fonts

EXPOSE 8080

Expand Down

0 comments on commit 82fd043

Please sign in to comment.