molly-brown-docker/Dockerfile
2024-03-23 23:21:29 -07:00

19 lines
476 B
Docker

FROM golang:1.22-alpine as builder
ADD . /go
ENV GOPATH /go
RUN go install tildegit.org/solderpunk/molly-brown@latest
FROM alpine
RUN addgroup -S --gid 10001 mb && \
adduser -S -G mb -u 10000 -s /bin/sh -h /mb mb
USER 10000
COPY --from=builder --chown=10000:10001 /go/bin/molly-brown /mb
COPY --chown=10000:10001 ./molly.conf /mb/molly.conf
COPY --chown=10000:10001 ./entrypoint.sh /mb/entrypoint.sh
ENTRYPOINT /mb/entrypoint.sh
CMD /mb/molly-brown -c /mb/molly.conf