mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
8469049a48
Signed-off-by: Jakub Martin <kubam@spacelift.io>
27 lines
863 B
Docker
27 lines
863 B
Docker
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
# This Dockerfile builds on golang:alpine by building OpenTF from source
|
|
# using the current working directory.
|
|
#
|
|
# This produces a docker image that contains a working OpenTF binary along
|
|
# with all of its source code. This is not what produces the official releases
|
|
# in the "opentf" namespace on Dockerhub; those images include only
|
|
# the officially-released binary from releases.hashicorp.com and are
|
|
# built by the (closed-source) official release process.
|
|
|
|
FROM docker.mirror.hashicorp.services/golang:alpine
|
|
LABEL maintainer="OpenTF Team <opentf@opentf.org>"
|
|
|
|
RUN apk add --no-cache git bash openssh
|
|
|
|
ENV TF_DEV=true
|
|
ENV TF_RELEASE=1
|
|
|
|
WORKDIR $GOPATH/src/github.com/placeholderplaceholderplaceholder/opentf
|
|
COPY . .
|
|
RUN /bin/bash ./scripts/build.sh
|
|
|
|
WORKDIR $GOPATH
|
|
ENTRYPOINT ["opentf"]
|