17 lines
351 B
Docker
17 lines
351 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 /etc/molly.conf
|
||
|
|
||
|
CMD /mb/molly-brown
|