gemini-agate-image/Dockerfile

24 lines
659 B
Docker
Raw Normal View History

2021-02-20 20:47:59 +00:00
FROM debian:stretch-slim
ENV AGATE_VER 2.5.2
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
RUN apt update && apt install -y openssl git wget \
&& apt clean && rm -rf /var/lib/apt/lists/*
RUN mkdir /app
RUN wget https://github.com/mbrubeck/agate/releases/download/v${AGATE_VER}/agate.x86_64-unknown-linux-gnu.gz -O /app/agate.gz \
&& cd /app && gunzip agate.gz && chmod +x agate
COPY entrypoint.sh /app/entrypoint.sh
EXPOSE 1965/tcp
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["run"]