molly-brown/Dockerfile

32 lines
659 B
Docker
Raw Normal View History

2022-02-15 15:11:07 +00:00
FROM golang:1.17.7-alpine3.15 AS builder
2020-08-24 14:49:49 +00:00
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
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
2020-08-24 15:29:47 +00:00
RUN ln -sf /dev/stdout /home/molly-brown/access.log
2020-08-24 15:10:14 +00:00
2020-08-24 14:49:49 +00:00
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