mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
Closes #869, #870, #872, #875, #877, #881 Co-Authored-By: Romain Beuque <556072+rbeuque74@users.noreply.github.com> Signed-off-by: Pascal Hofmann <mail@pascalhofmann.de>
32 lines
723 B
Docker
32 lines
723 B
Docker
# Copyright 2021 The terraform-docs Authors.
|
|
#
|
|
# Licensed under the MIT license (the "License"); you may not
|
|
# use this file except in compliance with the License.
|
|
#
|
|
# You may obtain a copy of the License at the LICENSE file in
|
|
# the root directory of this source tree.
|
|
|
|
FROM docker.io/library/golang:1.25.3-alpine AS builder
|
|
|
|
RUN apk add --update --no-cache make
|
|
|
|
WORKDIR /go/src/terraform-docs
|
|
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN make build
|
|
|
|
################
|
|
|
|
FROM docker.io/library/alpine:3.22.2
|
|
|
|
# Mitigate CVE-2023-5363
|
|
RUN apk add --no-cache --upgrade "openssl>=3.1.4-r1"
|
|
|
|
COPY --from=builder /go/src/terraform-docs/bin/linux-*/terraform-docs /usr/local/bin/
|
|
|
|
ENTRYPOINT ["terraform-docs"]
|