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

13
.dockerignore Normal file
View File

@@ -0,0 +1,13 @@
node_modules
npm-debug.log
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
.env
*/bin
*/obj
README.md
LICENSE
.vscode

0
.gitignore vendored Normal file
View File

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

8
docker-compose.debug.yml Normal file
View File

@@ -0,0 +1,8 @@
version: '2.1'
services:
opencv-docker-golang:
image: opencv-docker-golang
build:
context: .
dockerfile: Dockerfile

8
docker-compose.yml Normal file
View File

@@ -0,0 +1,8 @@
version: '2.1'
services:
opencv-docker-golang:
image: opencv-docker-golang
build: .
ports:
- :