Switch to scratch as docker base image for release dockerfile

Signed-off-by: Pujan Shah <pujan14@gmail.com>
This commit is contained in:
Pujan Shah
2021-02-15 22:03:28 +01:00
parent 2ea8635f26
commit c009b12cc2

View File

@@ -6,10 +6,11 @@
# You may obtain a copy of the License at the LICENSE file in
# the root directory of this source tree.
FROM alpine:3.12.3
RUN apk --no-cache add ca-certificates
# Use empty base image
FROM scratch
# Copy static executable for terraform-docs
COPY terraform-docs /usr/local/bin/terraform-docs
# Set entrypoint
ENTRYPOINT ["terraform-docs"]