init project

This commit is contained in:
kaiiak
2019-07-06 21:48:04 +08:00
parent 8b65d575bd
commit 6f3b620f33
5 changed files with 45 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
#build stage
FROM golang:alpine AS builder
WORKDIR /go/src/app
COPY . .
RUN apk add --no-cache git
RUN go get -d -v ./...
RUN go install -v ./...
#final stage
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder /go/bin/app /app
ENTRYPOINT ./app
LABEL Name=opencv-docker-golang Version=0.0.1