32 lines
678 B
Docker
32 lines
678 B
Docker
FROM docker.io/golang:1.17.11-alpine3.16 AS builder
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
ENV VERSION=48f9a206c03c0470e1c132b9667c6daa3583dada
|
|
RUN go get tildegit.org/solderpunk/molly-brown@$VERSION
|
|
|
|
FROM docker.io/thallian/confd-env:3.17
|
|
|
|
RUN addgroup -g 2222 molly-brown
|
|
RUN adduser -h /home/molly-brown -S -D -u 2222 -G molly-brown molly-brown
|
|
RUN addgroup molly-brown tty
|
|
|
|
RUN mkdir -p /var/gemini
|
|
RUN chown molly-brown:molly-brown /var/gemini
|
|
|
|
RUN ln -sf /dev/stdout /home/molly-brown/access.log
|
|
|
|
RUN apk --no-cache add \
|
|
openssl \
|
|
coreutils
|
|
|
|
COPY --from=builder /go/bin/molly-brown /bin/molly-brown
|
|
|
|
ADD /rootfs /
|
|
|
|
WORKDIR /
|
|
|
|
VOLUME /etc/molly-brown/keys /var/gemini/
|
|
|
|
EXPOSE 1965
|