molly-brown/Dockerfile

29 lines
577 B
Docker

FROM golang:1.15.0-alpine3.12 AS builder
ENV GO111MODULE=on
ENV VERSION=48f9a206c03c0470e1c132b9667c6daa3583dada
RUN go get tildegit.org/solderpunk/molly-brown@$VERSION
FROM thallian/confd-env:latest
RUN addgroup -g 2222 molly-brown
RUN adduser -h /home/molly-brown -S -D -u 2222 -G molly-brown molly-brown
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