Files
terraform-docs/Dockerfile
Khosrow Moossavi dfd1256ba4 Bump golang to 1.16.6-alpine
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-07-28 20:07:26 -04:00

29 lines
612 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 golang:1.16.6-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 alpine:3.14.0
COPY --from=builder /go/src/terraform-docs/bin/linux-amd64/terraform-docs /usr/local/bin/
ENTRYPOINT ["terraform-docs"]