Archived
1

Add Dockerfile, Drone CI config, remove Gitlab CI config

This commit is contained in:
2019-10-08 09:24:28 +04:00
parent f143f7b77c
commit fbdbb64931
3 changed files with 39 additions and 50 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM golang:1.13 AS builder
COPY . /build/
WORKDIR /build/
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOFLAGS='-mod=vendor' go build -tags netgo -ldflags '-w -extldflags "-static"'
FROM scratch
COPY --from=builder /build/fwzookeeper /usr/local/bin/fwzookeeper
VOLUME ["/data"]
ENTRYPOINT [ "/usr/local/bin/fwzookeeper" ]