2023-12-31 19:46:43 +00:00
|
|
|
FROM docker.io/golang:1.21-alpine3.19 AS builder
|
2020-08-24 14:49:49 +00:00
|
|
|
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
|
2023-12-31 19:46:43 +00:00
|
|
|
ENV VERSION=2068c3b02abf8f6a9160d1891d16a5237ab77a1b
|
|
|
|
RUN go install tildegit.org/solderpunk/molly-brown@$VERSION
|
2020-08-24 14:49:49 +00:00
|
|
|
|
2023-12-31 19:46:43 +00:00
|
|
|
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
|
2020-08-24 14:49:49 +00:00
|
|
|
|
|
|
|
RUN addgroup -g 2222 molly-brown
|
|
|
|
RUN adduser -h /home/molly-brown -S -D -u 2222 -G molly-brown molly-brown
|
2020-08-24 15:33:09 +00:00
|
|
|
RUN addgroup molly-brown tty
|
2020-08-24 14:49:49 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /var/gemini
|
|
|
|
RUN chown molly-brown:molly-brown /var/gemini
|
|
|
|
|
|
|
|
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
|