Commit 66d9befb authored by ibuler's avatar ibuler

[Update] 添加Dockerfile

parent 36d677b6
vendor
build
logs/*
data/*
FROM golang:1.12-alpine as stage-build
WORKDIR /go/src/coco
RUN apk update && apk add git
RUN export https_proxy=http://192.168.1.9:1087
RUN go get -u github.com/golang/dep/cmd/dep
COPY . .
RUN cd cmd && go build coco.go
FROM alpine
WORKDIR /opt/coco/
COPY --from=stage-build /go/src/coco/cmd/ /opt/coco/
CMD ['/opt/coco/coco']
......@@ -301,7 +301,6 @@
"github.com/aws/aws-sdk-go/aws",
"github.com/aws/aws-sdk-go/aws/credentials",
"github.com/aws/aws-sdk-go/aws/session",
"github.com/aws/aws-sdk-go/service/s3",
"github.com/aws/aws-sdk-go/service/s3/s3manager",
"github.com/elastic/go-elasticsearch",
"github.com/gliderlabs/ssh",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment