FROM debian:11-slim LABEL maintainer="Georgios Sokianos " ENV HOSTNAME=gemini.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; \ curl -fsSL "https://github.com/mbrubeck/agate/releases/download/v3.2.4%2Bbuild/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 \ --hostname ${HOSTNAME}