⭐ Moe-Counter Compatible Website Hit Counter Written in Gleam mayu.due.moe
hit-counter svg moe
at main 43 lines 844 B view raw
1VERSION 0.8 2 3image-all-platforms: 4 BUILD --platform=linux/amd64 --platform=linux/arm64 +image 5 6image: 7 ARG tag=latest 8 9 FROM ghcr.io/gleam-lang/gleam:v1.10.0-erlang-alpine 10 11 COPY +build/erlang-shipment/ /mayu/erlang-shipment/ 12 COPY themes/ /mayu/themes/ 13 COPY index.html /mayu/ 14 COPY gleam.toml /mayu/ 15 16 ENV MAYU_VERSION=$(grep version /mayu/gleam.toml | cut -d '"' -f 2) 17 18 RUN rm /mayu/gleam.toml 19 20 WORKDIR /mayu/ 21 22 ENTRYPOINT ["./erlang-shipment/entrypoint.sh"] 23 24 CMD ["run"] 25 26 SAVE IMAGE --push fuwn/mayu:${tag} 27 28build: 29 FROM ghcr.io/gleam-lang/gleam:v1.10.0-erlang-alpine 30 31 RUN apk add --no-cache build-base 32 33 WORKDIR /mayu/ 34 35 COPY src/ /mayu/src/ 36 COPY gleam.toml /mayu/ 37 COPY manifest.toml /mayu/ 38 39 RUN gleam build \ 40 && cd build/ \ 41 && gleam export erlang-shipment 42 43 SAVE ARTIFACT /mayu/build/erlang-shipment/