Updated agate server to v3.3.0

This commit is contained in:
George Sokianos 2023-05-27 21:41:27 +01:00
parent 13db7802c5
commit 67b4c76435
2 changed files with 6 additions and 4 deletions

View File

@ -2,6 +2,7 @@ FROM debian:11-slim
LABEL maintainer="Georgios Sokianos <walkero@gmail.com>" LABEL maintainer="Georgios Sokianos <walkero@gmail.com>"
ENV HOSTNAME=gemini.docker.localhost ENV HOSTNAME=gemini.docker.localhost
ENV HOST_DOMAIN=docker.localhost
ENV PACKAGES="ca-certificates \ ENV PACKAGES="ca-certificates \
curl \ curl \
@ -15,7 +16,7 @@ USER gemini
WORKDIR /home/gemini WORKDIR /home/gemini
RUN mkdir -p /home/gemini/content /home/gemini/server /home/gemini/certificate; \ 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 && \ 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 && \ gunzip ./server/agate.gz && \
mv ./server/agate ./server/agate-server && \ mv ./server/agate ./server/agate-server && \
chmod +x ./server/agate-server; chmod +x ./server/agate-server;
@ -26,4 +27,5 @@ ENTRYPOINT /home/gemini/server/agate-server \
--content /home/gemini/content \ --content /home/gemini/content \
--addr [::]:1965 --addr 0.0.0.0:1965 \ --addr [::]:1965 --addr 0.0.0.0:1965 \
--lang en-US \ --lang en-US \
--hostname ${HOSTNAME} --hostname ${HOSTNAME} \
--certs /home/gemini/certificate/

View File

@ -1,5 +1,5 @@
REPO ?= walkero/agate-gemini REPO ?= walkero/agate-gemini
TAG ?= 1.0 TAG ?= 1.1
NAME ?= agate-gemini NAME ?= agate-gemini
WORKSPACE ?= -w /home/gemini/content WORKSPACE ?= -w /home/gemini/content
VOLUMES ?= -v "${PWD}/content":/home/gemini/content VOLUMES ?= -v "${PWD}/content":/home/gemini/content
@ -25,7 +25,7 @@ build:
docker build -f ./Dockerfile \ docker build -f ./Dockerfile \
-t $(REPO):$(TAG) . -t $(REPO):$(TAG) .
buildnc: pullrepos buildnc:
docker build --no-cache -f ./Dockerfile \ docker build --no-cache -f ./Dockerfile \
-t $(REPO):$(TAG) . -t $(REPO):$(TAG) .