Skip to content

Commit

Permalink
adds dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tgallant committed Jul 19, 2021
1 parent 6ddf53b commit 481c68a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.16.6-alpine3.14 AS builder
WORKDIR $GOPATH/src/github.com/tgallant/db2jsonschema
COPY . .
RUN apk add --update gcc musl-dev make
RUN make build

FROM alpine:3.14
WORKDIR /root/
COPY --from=builder /go/src/github.com/tgallant/db2jsonschema/db2jsonschema .
ENTRYPOINT ["./db2jsonschema"]
CMD ["help"]

0 comments on commit 481c68a

Please sign in to comment.