2022-09-18 12:54:50 +00:00
|
|
|
FROM alpine:3.16 as build
|
2021-02-20 20:47:59 +00:00
|
|
|
|
2022-09-18 12:54:50 +00:00
|
|
|
ENV AGATE_VER 3.2.4
|
2021-02-20 20:47:59 +00:00
|
|
|
|
2022-09-18 12:54:50 +00:00
|
|
|
RUN apk --no-cache add cargo
|
|
|
|
RUN cargo install agate --version ${AGATE_VER}
|
|
|
|
|
|
|
|
FROM alpine:3.16
|
2021-02-20 20:47:59 +00:00
|
|
|
ENV GEMINI_DOMAIN example.com
|
|
|
|
ENV GEMINI_GIT_REPO https://gitlab.com/valvin/gemini-agate-image
|
|
|
|
ENV GEMINI_GIT_PATH /app/data
|
|
|
|
ENV GEMINI_CONTENT_FOLDER content
|
|
|
|
ENV GEMINI_CERT_PATH /certs
|
|
|
|
ENV GEMINI_LANG fr-FR
|
2022-09-18 12:54:50 +00:00
|
|
|
ENV GEMINI_PORT 1965
|
2022-09-18 19:17:59 +00:00
|
|
|
ENV GEMINI_KILN_BUILD no
|
2022-09-18 12:54:50 +00:00
|
|
|
ENV GEMINI_KILN_SRC .
|
2021-02-20 20:47:59 +00:00
|
|
|
|
2022-09-18 12:54:50 +00:00
|
|
|
RUN apk --no-cache add openssl libgcc git kiln
|
2021-02-20 20:47:59 +00:00
|
|
|
RUN mkdir /app
|
2022-09-18 12:54:50 +00:00
|
|
|
COPY --from=build /root/.cargo/bin/agate /app/agate
|
2021-02-20 20:47:59 +00:00
|
|
|
COPY entrypoint.sh /app/entrypoint.sh
|
|
|
|
|
|
|
|
EXPOSE 1965/tcp
|
|
|
|
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|
|
CMD ["run"]
|