molly-brown/Containerfile
Sebastian Hugentobler 269df6a0c2
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Failing after 1m58s
use new logging config
2023-12-31 22:33:20 +01:00

30 lines
634 B
Docker

FROM docker.io/golang:1.21-alpine3.19 AS builder
ENV GO111MODULE=on
ENV VERSION=2068c3b02abf8f6a9160d1891d16a5237ab77a1b
RUN go install tildegit.org/solderpunk/molly-brown@$VERSION
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
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 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