diff --git a/Dockerfile b/Dockerfile index 82258f5..5d4d81c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,17 @@ FROM golang:1.13 AS builder COPY . /build/ WORKDIR /build/ +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 +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /build/fwzookeeper /usr/local/bin/fwzookeeper VOLUME ["/data"] -ENTRYPOINT [ "/usr/local/bin/fwzookeeper" ] \ No newline at end of file +EXPOSE 6000 + +ENTRYPOINT [ "/usr/local/bin/fwzookeeper" ] diff --git a/context/exported.go b/context/exported.go index 21bacb9..e40f933 100644 --- a/context/exported.go +++ b/context/exported.go @@ -9,7 +9,7 @@ import ( ) // VERSION is the current bot's version -const VERSION = "0.1.0" +const VERSION = "0.1.1" // Context is the main application context. type Context struct {