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

20 lines
468 B
Docker
Raw Normal View History

FROM golang:1.13 AS builder
COPY . /build/
WORKDIR /build/
2019-10-08 10:56:02 +04:00
RUN apt-get update && apt-get -y install ca-certificates
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOFLAGS='-mod=vendor' go build -tags netgo -ldflags '-w -extldflags "-static"'
FROM scratch
2019-10-08 10:56:02 +04:00
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build/fwzookeeper /usr/local/bin/fwzookeeper
VOLUME ["/data"]
2019-10-08 10:56:02 +04:00
EXPOSE 6000
ENTRYPOINT [ "/usr/local/bin/fwzookeeper" ]