Skip to content

Commit

Permalink
Use golang alpine as baseimage and bake in prerequisite
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsbhat committed Aug 30, 2022
1 parent 0c51627 commit f4bab5f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
### Description: Dockerfile for Terragen
FROM alpine:3.11
FROM golang:alpine3.15 as builder

RUN go install golang.org/x/tools/cmd/goimports@latest
RUN go install mvdan.cc/gofumpt@latest

FROM golang:alpine3.15

COPY --from=builder /go/bin/goimports /go/bin/goimports
COPY --from=builder /go/bin/gofumpt /go/bin/gofumpt
COPY terragen /

# Starting
Expand Down

0 comments on commit f4bab5f

Please sign in to comment.