2024-02-08 03:48:59 -06:00
|
|
|
# Copyright (c) The OpenTofu Authors
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
# Copyright (c) 2023 HashiCorp, Inc.
|
2023-05-02 10:33:06 -05:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2024-09-17 09:07:07 -05:00
|
|
|
FROM alpine:3.20
|
2020-10-07 14:38:19 -05:00
|
|
|
|
2023-10-19 05:03:39 -05:00
|
|
|
LABEL maintainer="OpenTofu Core Team <core@opentofu.org>"
|
2020-10-07 14:38:19 -05:00
|
|
|
|
2023-12-18 14:53:17 -06:00
|
|
|
RUN apk add --no-cache git bash openssh
|
2023-10-19 09:16:55 -05:00
|
|
|
|
2023-09-21 08:20:24 -05:00
|
|
|
COPY tofu /usr/local/bin/tofu
|
2020-10-07 14:38:19 -05:00
|
|
|
|
2024-09-17 09:07:07 -05:00
|
|
|
ONBUILD RUN echo -e "\033[1;33mWARNING! PLEASE READ!\033[0m" >&2 \
|
|
|
|
&& echo -e "\033[1;33mPlease read carefully: you are using the OpenTofu image as a base image\033[0m" >&2 \
|
2025-01-07 09:08:23 -06:00
|
|
|
&& echo -e "\033[1;33mfor your own builds. This is no longer supported as of OpenTofu 1.10.\033[0m" >&2 \
|
|
|
|
&& echo -e "\033[1;33mPlease follow the instructions at\033[0m" >&2 \
|
2024-09-17 09:07:07 -05:00
|
|
|
&& echo -e "\033[1;33m https://opentofu.org/docs/intro/install/docker/ to build your own\033[0m" >&2 \
|
|
|
|
&& echo -e "\033[1;33mimage. See https://github.com/opentofu/opentofu/issues/1931 for details\033[0m" >&2 \
|
|
|
|
&& echo -e "\033[1;33mon this decision.\033[0m" >&2
|
|
|
|
|
2025-01-07 09:08:23 -06:00
|
|
|
ONBUILD RUN exit 1
|
2024-09-17 09:07:07 -05:00
|
|
|
|
2023-09-21 08:20:24 -05:00
|
|
|
ENTRYPOINT ["/usr/local/bin/tofu"]
|