pnut-bridge/Dockerfile
Morgan McMillian 540257787a
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
setup docker build
2023-08-21 21:28:02 -07:00

22 lines
355 B
Docker

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"]