-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·29 lines (27 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM golang:alpine AS builder
ENV GO111MODULE=on
# make g++ zlib-dev libssl1.1 libsasl zstd-libsapk add --no-cache \
RUN apk add --update --no-cache \
bash \
build-base \
coreutils \
gcc \
git \
g++ \
make \
musl-dev \
openssl-dev \
openssl \
libsasl \
libgss-dev \
rpm \
lz4-dev \
zlib-dev \
ca-certificates
WORKDIR $GOPATH/src/floki/build/
COPY . .
RUN go mod download
RUN GOOS=linux GOARCH=amd64 go build -a -tags static_all -o /go/bin/floki
#FROM scratch
#COPY --from=builder /go/bin/floki /go/bin/floki
ENTRYPOINT ["/go/bin/floki"]