Skip to content

Commit 76035a2

Browse files
feat: update Dockerfile to use specific Terraform version and streamline file copying
1 parent bc14769 commit 76035a2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
FROM hashicorp/terraform:1.15 AS terraform
12
# Instead of building from scratch pull my other docker image
23
FROM devopsinfra/docker-terragrunt:slim-latest AS builder
34

45
# Use a clean tiny image to store artifacts in
56
FROM alpine:3.23.4
67

78
# Copy all needed files
8-
COPY --from=builder /usr/bin/terraform /usr/bin/format-hcl /usr/bin/fmt.sh /usr/bin/terragrunt-fmt.sh /usr/bin/
9+
COPY --from=terraform /usr/bin/terraform /usr/bin/terraform
10+
COPY --from=builder /usr/bin/format-hcl /usr/bin/fmt.sh /usr/bin/terragrunt-fmt.sh /usr/bin/
911
COPY entrypoint.sh /
1012
COPY alpine-packages.txt /tmp/alpine-packages.txt
1113

0 commit comments

Comments
 (0)