Skip to content

Commit

Permalink
feat: add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
shivjm committed Nov 7, 2021
1 parent 908919e commit 1686dd8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
@@ -0,0 +1,13 @@
FROM golang:1.16.5-alpine as builder

WORKDIR /app

COPY go.mod go.sum main.go ./

RUN CGO_ENABLED=0 GOOS=linux go build -tags netgo -ldflags '-w' .

FROM scratch

COPY --from=builder /app/dockerfile-image-tags /dockerfile-image-tags

ENTRYPOINT ["/dockerfile-image-tags"]

0 comments on commit 1686dd8

Please sign in to comment.