pnut-bridge/Dockerfile

23 lines
355 B
Text
Raw Normal View History

2023-08-22 04:28:02 +00:00
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"]