Browse Source

Update Dockerfile with CA certificates

tags/0.1.1
Vladimir Hodakov 7 months ago
parent
commit
f541809913
Signed by: fat0troll <vladimir@hodakov.me> GPG Key ID: 673980B6882F82C6
2 changed files with 7 additions and 2 deletions
  1. +6
    -1
      Dockerfile
  2. +1
    -1
      context/exported.go

+ 6
- 1
Dockerfile View File

@@ -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" ]
EXPOSE 6000

ENTRYPOINT [ "/usr/local/bin/fwzookeeper" ]

+ 1
- 1
context/exported.go View File

@@ -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 {


Loading…
Cancel
Save