FROM golang:alpine AS builder RUN apk --update add git g++ && \ git clone --depth=1 --single-branch https://github.com/kiwiirc/webircgateway.git && \ cd webircgateway && \ go build FROM golang:alpine AS webircgateway COPY --from=builder /go/webircgateway/webircgateway /app/webircgateway WORKDIR /app CMD ["./webircgateway", "--config=config.conf"]