1
Fork 0
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues/pull-requests.
fwzookeeper_helper/Dockerfile

15 lines
348 B
Docker
Raw Normal View History

2019-10-08 06:17:07 +04:00
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
2019-10-08 10:58:13 +04:00
COPY --from=builder /build/fwzookeeper_helper /usr/local/bin/fwzookeeper_helper
2019-10-08 06:17:07 +04:00
VOLUME ["/data"]
2019-10-08 10:58:13 +04:00
ENTRYPOINT [ "/usr/local/bin/fwzookeeper_helper" ]