14 lines
349 B
Docker
14 lines
349 B
Docker
FROM fat0troll/tdlib-golangci AS builder
|
|
|
|
COPY . /build/
|
|
WORKDIR /build/
|
|
|
|
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOFLAGS='-mod=vendor' go build -ldflags '-w -extldflags "-static"'
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /build/fwzookeeper_helper /usr/local/bin/fw_zookeeper_helper
|
|
|
|
VOLUME ["/data"]
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/fw_zookeeper_helper" ] |