18 lines
393 B
Docker
18 lines
393 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 ./molly.conf /mb/molly.conf
|
|
|
|
ENTRYPOINT entrypoint.sh
|
|
CMD /mb/molly-brown -c /mb/molly.conf |