Skip to content

Commit

Permalink
Added dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleimp committed Jul 28, 2020
1 parent 1543946 commit 01806bb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.editorconfig
.git
AUTHORS.md
CONTRIBUTING.md
LICENSE
Makefile
NOTICE
README.md
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM golang:1.14-alpine AS base
RUN apk add --no-cache git
WORKDIR /app


FROM base as builder
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -v -o unleash-checkr main.go


FROM scratch as final
WORKDIR /app
COPY --from=builder /app/unleash-checkr /app
ENTRYPOINT ["./unleash-checkr"]

0 comments on commit 01806bb

Please sign in to comment.