feat: add gmnitohtml binary

This commit is contained in:
valvin 2022-10-06 21:57:53 +02:00
parent 66c990c791
commit 30e02c1f56
1 changed files with 12 additions and 2 deletions

View File

@ -1,10 +1,19 @@
FROM alpine:3.16 as build FROM golang:alpine as build_gmnitohtml
ENV GMNITOHTML_VER 0.1.2
RUN apk add make
RUN wget -O /tmp/gmnitohtml.tar.gz https://git.sr.ht/~adnano/gmnitohtml/archive/${GMNITOHTML_VER}.tar.gz \
&& tar -xvzf /tmp/gmnitohtml.tar.gz && cd gmnitohtml-${GMNITOHTML_VER} \
&& make gmnitohtml
FROM alpine:3.16 as build_agate
ENV AGATE_VER 3.2.4 ENV AGATE_VER 3.2.4
RUN apk --no-cache add cargo RUN apk --no-cache add cargo
RUN cargo install agate --version ${AGATE_VER} RUN cargo install agate --version ${AGATE_VER}
FROM alpine:3.16 FROM alpine:3.16
ENV GEMINI_DOMAIN example.com ENV GEMINI_DOMAIN example.com
ENV GEMINI_GIT_REPO https://gitlab.com/valvin/gemini-agate-image ENV GEMINI_GIT_REPO https://gitlab.com/valvin/gemini-agate-image
@ -18,7 +27,8 @@ ENV GEMINI_KILN_SRC .
RUN apk --no-cache add openssl libgcc git kiln RUN apk --no-cache add openssl libgcc git kiln
RUN mkdir /app RUN mkdir /app
COPY --from=build /root/.cargo/bin/agate /app/agate COPY --from=build_agate /root/.cargo/bin/agate /app/agate
COPY --from=build_gmnitohtml /go/gmnitohtml/gmnitohtml /usr/local/bin/gmnitohtml
COPY entrypoint.sh /app/entrypoint.sh COPY entrypoint.sh /app/entrypoint.sh
EXPOSE 1965/tcp EXPOSE 1965/tcp