23 lines
355 B
Text
23 lines
355 B
Text
|
FROM alpine AS builder
|
||
|
|
||
|
RUN apk --no-cache add go git
|
||
|
|
||
|
COPY . /go/src/pnut-bridge
|
||
|
|
||
|
WORKDIR /go/src/pnut-bridge
|
||
|
|
||
|
RUN GO_ENABLED=0 go build -o /bin/pnut-bridge
|
||
|
|
||
|
|
||
|
FROM alpine
|
||
|
|
||
|
RUN apk --no-cache add ca-certificates
|
||
|
|
||
|
COPY --from=builder /bin/pnut-bridge /bin/pnut-bridge
|
||
|
|
||
|
VOLUME /data
|
||
|
|
||
|
WORKDIR /data
|
||
|
|
||
|
ENTRYPOINT ["/bin/pnut-bridge", "-c", "/data/config.ini"]
|