Skip to content

Commit

Permalink
fix: single COPY cmd for terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
GenPage committed Jan 23, 2023
1 parent 5aaf166 commit db22d76
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,7 @@ RUN addgroup atlantis && \
# copy binary
COPY --from=builder /app/atlantis /usr/local/bin/atlantis
# copy terraform
# TODO: figure out better way to copy versions over, maybe just track one version
COPY --from=deps /usr/local/bin/terraform /usr/local/bin/terraform
COPY --from=deps /usr/local/bin/terraform1.2.9 /usr/local/bin/terraform1.2.9
COPY --from=deps /usr/local/bin/terraform1.1.9 /usr/local/bin/terraform1.1.9
COPY --from=deps /usr/local/bin/terraform1.0.11 /usr/local/bin/terraform1.0.11
COPY --from=deps /usr/local/bin/terraform* /usr/local/bin/
# copy deps
COPY --from=deps /usr/local/bin/conftest /usr/local/bin/conftest
COPY --from=deps /bin/gosu /bin/gosu
Expand Down Expand Up @@ -168,11 +164,7 @@ FROM debian:${DEBIAN_TAG} AS debian
# copy binary
COPY --from=builder /app/atlantis /usr/local/bin/atlantis
# copy terraform
# TODO: figure out better way to copy versions over, maybe just track one version
COPY --from=deps /usr/local/bin/terraform /usr/local/bin/terraform
COPY --from=deps /usr/local/bin/terraform1.2.9 /usr/local/bin/terraform1.2.9
COPY --from=deps /usr/local/bin/terraform1.1.9 /usr/local/bin/terraform1.1.9
COPY --from=deps /usr/local/bin/terraform1.0.11 /usr/local/bin/terraform1.0.11
COPY --from=deps /usr/local/bin/terraform* /usr/local/bin/
# copy deps
COPY --from=deps /usr/local/bin/conftest /usr/local/bin/conftest
COPY --from=deps /bin/gosu /bin/gosu
Expand Down

0 comments on commit db22d76

Please sign in to comment.