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