Update Dockerfile with CA certificates
This commit is contained in:
parent
c2caa0844a
commit
f541809913
@ -3,12 +3,17 @@ FROM golang:1.13 AS builder
|
|||||||
COPY . /build/
|
COPY . /build/
|
||||||
WORKDIR /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"'
|
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOFLAGS='-mod=vendor' go build -tags netgo -ldflags '-w -extldflags "-static"'
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
COPY --from=builder /build/fwzookeeper /usr/local/bin/fwzookeeper
|
COPY --from=builder /build/fwzookeeper /usr/local/bin/fwzookeeper
|
||||||
|
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/fwzookeeper" ]
|
EXPOSE 6000
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/usr/local/bin/fwzookeeper" ]
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// VERSION is the current bot's version
|
// VERSION is the current bot's version
|
||||||
const VERSION = "0.1.0"
|
const VERSION = "0.1.1"
|
||||||
|
|
||||||
// Context is the main application context.
|
// Context is the main application context.
|
||||||
type Context struct {
|
type Context struct {
|
||||||
|
Reference in New Issue
Block a user