agate-gemini/Dockerfile

31 lines
932 B
Docker
Raw Normal View History

FROM debian:11-slim
LABEL maintainer="Georgios Sokianos <walkero@gmail.com>"
ENV HOSTNAME=gemini.docker.localhost
2023-05-27 22:41:27 +02:00
ENV HOST_DOMAIN=docker.localhost
ENV PACKAGES="ca-certificates \
curl \
openssl"
RUN apt-get update && apt-get -y --no-install-recommends install ${PACKAGES};
RUN useradd -m -s /bin/bash gemini
USER gemini
WORKDIR /home/gemini
RUN mkdir -p /home/gemini/content /home/gemini/server /home/gemini/certificate; \
2023-05-27 22:41:27 +02:00
curl -fsSL "https://github.com/mbrubeck/agate/releases/download/v3.3.0/agate.x86_64-unknown-linux-gnu.gz" -o /home/gemini/server/agate.gz && \
gunzip ./server/agate.gz && \
mv ./server/agate ./server/agate-server && \
chmod +x ./server/agate-server;
EXPOSE 1965/tcp
ENTRYPOINT /home/gemini/server/agate-server \
--content /home/gemini/content \
--addr [::]:1965 --addr 0.0.0.0:1965 \
--lang en-US \
2023-05-27 22:41:27 +02:00
--hostname ${HOSTNAME} \
--certs /home/gemini/certificate/