Caching fonts proxy for Googel Fonts
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Create Containerfile


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

+47
+47
Containerfile
··· 1 + # --- Build Stage --- 2 + FROM ghcr.io/gleam-lang/gleam:v1.16.0-erlang-alpine AS builder 3 + 4 + RUN apk add --no-cache wget ca-certificates 5 + 6 + WORKDIR /app 7 + 8 + COPY gleam.toml manifest.toml ./ 9 + RUN gleam deps download 10 + 11 + COPY src/ src/ 12 + COPY priv/ priv/ 13 + 14 + RUN wget -q https://raw.githubusercontent.com/knadh/oat/refs/heads/gh-pages/oat.min.css -O priv/oat.min.css && \ 15 + wget -q https://raw.githubusercontent.com/knadh/oat/refs/heads/gh-pages/oat.min.js -O priv/oat.min.js 16 + 17 + RUN gleam export erlang-shipment 18 + 19 + FROM erlang:28-alpine 20 + 21 + WORKDIR /app 22 + 23 + RUN apk add --no-cache \ 24 + libstdc++ \ 25 + openssl \ 26 + ncurses-libs \ 27 + dumb-init 28 + 29 + COPY --from=builder /app/build/erlang-shipment /app 30 + 31 + RUN adduser -D -H user && \ 32 + chown -R user:user /app && \ 33 + chmod +x /app/entrypoint.sh 34 + 35 + USER user 36 + 37 + RUN mkdir -p /app/data && chown -R user:user /app/data 38 + 39 + VOLUME /app/data 40 + 41 + EXPOSE 8080 42 + 43 + HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ 44 + CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1 45 + 46 + ENTRYPOINT ["/usr/bin/dumb-init", "--"] 47 + CMD ["/app/entrypoint.sh", "run"]