init project
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user