init project
This commit is contained in:
13
.dockerignore
Normal file
13
.dockerignore
Normal 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
0
.gitignore
vendored
Normal file
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
|
||||
|
||||
8
docker-compose.debug.yml
Normal file
8
docker-compose.debug.yml
Normal 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
8
docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
version: '2.1'
|
||||
|
||||
services:
|
||||
opencv-docker-golang:
|
||||
image: opencv-docker-golang
|
||||
build: .
|
||||
ports:
|
||||
- :
|
||||
Reference in New Issue
Block a user