Skip to content

Commit

Permalink
Adds a Dockerfile that creates a terragrunt image
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon committed May 4, 2021
1 parent 9362e01 commit c90d385
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM golang:1.16.3-alpine as builder

RUN apk add --update --no-cache make git

WORKDIR /go/src/terragrunt

# Download modules in a separate layer so docker caches it, to reduce build time
# when modules have not changed.
COPY go.mod .
COPY go.sum .
RUN go mod download -x

COPY . .

RUN make build

###

FROM alpine:latest

COPY --from=builder /go/src/terragrunt/terragrunt /usr/local/bin/

ENTRYPOINT terragrunt

0 comments on commit c90d385

Please sign in to comment.