molly-brown-docker/Dockerfile

18 lines
393 B
Docker
Raw Normal View History

2024-03-23 21:47:58 +00:00
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 ./molly.conf /mb/molly.conf
2024-03-23 21:47:58 +00:00
ENTRYPOINT entrypoint.sh
2024-03-23 23:01:16 +00:00
CMD /mb/molly-brown -c /mb/molly.conf