Skip to content

Commit

Permalink
Update opentofu
Browse files Browse the repository at this point in the history
Signed-off-by: Jauder Ho <[email protected]>
  • Loading branch information
jauderho committed Oct 27, 2023
1 parent ec30fca commit 26d8b88
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions opentofu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ RUN test -n "${BUILD_VERSION}" \
&& git clone --depth 1 ${GIT_URL} /go/src/github.com/opentofu/opentofu \
&& cd /go/src/github.com/opentofu/opentofu \
&& go generate ./... \
#&& go run ./tools/protobuf-compile . \
&& go build -v -trimpath -buildmode=pie -ldflags="-s -w -X github.com/opentofu/opentofu/version.dev=no -X main.experimentsAllowed=yes" \
&& cp opentofu /go/bin/opentofu \
&& go run ./tools/protobuf-compile . \
&& go build -v -trimpath -buildmode=pie -ldflags="-s -w -X github.com/opentofu/opentofu/version.dev=no -X main.experimentsAllowed=yes" ./cmd/tofu \
&& cp tofu /go/bin/tofu \
&& go clean && go clean -cache && go clean -modcache


Expand All @@ -45,9 +45,9 @@ RUN apk update \
&& apk upgrade -a

COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=build /go/bin/opentofu /usr/local/bin/opentofu
COPY --from=build /go/bin/tofu /usr/local/bin/tofu

#RUN opentofu --version

ENTRYPOINT [ "/usr/local/bin/opentofu" ]
ENTRYPOINT [ "/usr/local/bin/tofu" ]

0 comments on commit 26d8b88

Please sign in to comment.