OSDN Git Service

log into file (#357)
[bytom/vapor.git] / fed.Dockerfile
1 # Build fedd in a stock Go builder container
2 FROM golang:1.12-alpine as builder
3
4 RUN apk add --no-cache make git
5
6 ADD . /go/src/github.com/vapor
7 WORKDIR /go/src/github.com/vapor/cmd/fedd
8
9 RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -installsuffix cgo -o fed main.go
10
11 # Pull Bytom into a second stage deploy alpine container
12 FROM alpine:latest
13
14 RUN apk add --no-cache ca-certificates
15 COPY --from=builder /go/src/github.com/vapor/cmd/fedd/fed /usr/local/bin/
16
17 EXPOSE 9886