Skip to content

Commit fc094cc

Browse files
authored
chore: fix docker build warnings (#5862)
1 parent 3fe03ab commit fc094cc

1 file changed

Lines changed: 34 additions & 34 deletions

File tree

‎Dockerfile‎

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@
77
#########################################
88
# Get dependency images as build stages #
99
#########################################
10-
FROM tenable/terrascan:1.18.11 as terrascan
11-
FROM alpine/terragrunt:1.9.0 as terragrunt
12-
FROM dotenvlinter/dotenv-linter:3.3.0 as dotenv-linter
13-
FROM ghcr.io/terraform-linters/tflint:v0.51.2 as tflint
14-
FROM ghcr.io/yannh/kubeconform:v0.6.6 as kubeconfrm
15-
FROM alpine/helm:3.14.4 as helm
16-
FROM golang:1.22.5-alpine as golang
17-
FROM golangci/golangci-lint:v1.59.0 as golangci-lint
18-
FROM goreleaser/goreleaser:v1.26.2 as goreleaser
19-
FROM hadolint/hadolint:v2.12.0-alpine as dockerfile-lint
20-
FROM registry.k8s.io/kustomize/kustomize:v5.4.2 as kustomize
21-
FROM hashicorp/terraform:1.8.4 as terraform
22-
FROM koalaman/shellcheck:v0.10.0 as shellcheck
23-
FROM mstruebing/editorconfig-checker:v3.0.1 as editorconfig-checker
24-
FROM mvdan/shfmt:v3.8.0 as shfmt
25-
FROM rhysd/actionlint:1.7.1 as actionlint
26-
FROM scalameta/scalafmt:v3.8.1 as scalafmt
27-
FROM zricethezav/gitleaks:v8.18.3 as gitleaks
28-
FROM yoheimuta/protolint:0.50.2 as protolint
29-
FROM ghcr.io/clj-kondo/clj-kondo:2024.05.24-alpine as clj-kondo
30-
FROM dart:3.4.2-sdk as dart
31-
FROM mcr.microsoft.com/dotnet/sdk:8.0.301-alpine3.19 as dotnet-sdk
32-
FROM mcr.microsoft.com/powershell:7.4-alpine-3.17 as powershell
33-
34-
FROM python:3.12.3-alpine3.19 as clang-format
10+
FROM tenable/terrascan:1.18.11 AS terrascan
11+
FROM alpine/terragrunt:1.9.0 AS terragrunt
12+
FROM dotenvlinter/dotenv-linter:3.3.0 AS dotenv-linter
13+
FROM ghcr.io/terraform-linters/tflint:v0.51.2 AS tflint
14+
FROM ghcr.io/yannh/kubeconform:v0.6.6 AS kubeconfrm
15+
FROM alpine/helm:3.14.4 AS helm
16+
FROM golang:1.22.5-alpine AS golang
17+
FROM golangci/golangci-lint:v1.59.0 AS golangci-lint
18+
FROM goreleaser/goreleaser:v1.26.2 AS goreleaser
19+
FROM hadolint/hadolint:v2.12.0-alpine AS dockerfile-lint
20+
FROM registry.k8s.io/kustomize/kustomize:v5.4.2 AS kustomize
21+
FROM hashicorp/terraform:1.8.4 AS terraform
22+
FROM koalaman/shellcheck:v0.10.0 AS shellcheck
23+
FROM mstruebing/editorconfig-checker:v3.0.1 AS editorconfig-checker
24+
FROM mvdan/shfmt:v3.8.0 AS shfmt
25+
FROM rhysd/actionlint:1.7.1 AS actionlint
26+
FROM scalameta/scalafmt:v3.8.1 AS scalafmt
27+
FROM zricethezav/gitleaks:v8.18.3 AS gitleaks
28+
FROM yoheimuta/protolint:0.50.2 AS protolint
29+
FROM ghcr.io/clj-kondo/clj-kondo:2024.05.24-alpine AS clj-kondo
30+
FROM dart:3.4.2-sdk AS dart
31+
FROM mcr.microsoft.com/dotnet/sdk:8.0.301-alpine3.19 AS dotnet-sdk
32+
FROM mcr.microsoft.com/powershell:7.4-alpine-3.17 AS powershell
33+
34+
FROM python:3.12.3-alpine3.19 AS clang-format
3535

3636
RUN apk add --no-cache \
3737
build-base \
@@ -58,7 +58,7 @@ RUN cmake \
5858
&& ninja clang-format \
5959
&& mv /tmp/llvm-project/llvm/build/bin/clang-format /usr/bin
6060

61-
FROM python:3.12.3-alpine3.19 as python-builder
61+
FROM python:3.12.3-alpine3.19 AS python-builder
6262

6363
RUN apk add --no-cache \
6464
bash
@@ -69,7 +69,7 @@ COPY dependencies/python/ /stage
6969
WORKDIR /stage
7070
RUN ./build-venvs.sh && rm -rfv /stage
7171

72-
FROM python:3.12.3-alpine3.19 as npm-builder
72+
FROM python:3.12.3-alpine3.19 AS npm-builder
7373

7474
RUN apk add --no-cache \
7575
bash \
@@ -89,7 +89,7 @@ RUN apk add --no-cache --virtual .node-build-deps \
8989
&& chown -R "$(id -u)":"$(id -g)" node_modules \
9090
&& rm -rfv package.json package-lock.json
9191

92-
FROM tflint as tflint-plugins
92+
FROM tflint AS tflint-plugins
9393

9494
# Configure TFLint plugin folder
9595
ENV TFLINT_PLUGIN_DIR="/root/.tflint.d/plugins"
@@ -100,7 +100,7 @@ COPY TEMPLATES/.tflint.hcl /action/lib/.automation/
100100
# Initialize TFLint plugins so we get plugin versions listed when we ask for TFLint version
101101
RUN tflint --init -c /action/lib/.automation/.tflint.hcl
102102

103-
FROM python:3.12.3-alpine3.19 as lintr-installer
103+
FROM python:3.12.3-alpine3.19 AS lintr-installer
104104

105105
RUN apk add --no-cache \
106106
bash \
@@ -111,13 +111,13 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
111111
COPY scripts/install-lintr.sh scripts/install-r-package-or-fail.R /
112112
RUN /install-lintr.sh && rm -rf /install-lintr.sh /install-r-package-or-fail.R
113113

114-
FROM powershell as powershell-installer
114+
FROM powershell AS powershell-installer
115115

116116
# Copy the value of the PowerShell install directory to a file so we can reuse it
117117
# when copying PowerShell stuff in the main image
118118
RUN echo "${PS_INSTALL_FOLDER}" > /tmp/PS_INSTALL_FOLDER
119119

120-
FROM python:3.12.3-alpine3.19 as base_image
120+
FROM python:3.12.3-alpine3.19 AS base_image
121121

122122
LABEL com.github.actions.name="Super-Linter" \
123123
com.github.actions.description="Super-linter is a ready-to-run collection of linters and code analyzers, to help validate your source code." \
@@ -362,7 +362,7 @@ COPY --from=clj-kondo /bin/clj-kondo /usr/bin/
362362
####################
363363
# Install dart-sdk #
364364
####################
365-
ENV DART_SDK /usr/lib/dart
365+
ENV DART_SDK=/usr/lib/dart
366366
COPY --from=dart "${DART_SDK}" "${DART_SDK}"
367367
RUN chmod 755 "${DART_SDK}" && chmod 755 "${DART_SDK}/bin"
368368

@@ -414,7 +414,7 @@ RUN mkdir /action
414414

415415
ENTRYPOINT ["/action/lib/linter.sh"]
416416

417-
FROM base_image as slim
417+
FROM base_image AS slim
418418

419419
# Run to build version file and validate image
420420
ENV IMAGE="slim"
@@ -449,7 +449,7 @@ ENV BUILD_VERSION=$BUILD_VERSION
449449
##############################
450450
# Build the standard variant #
451451
##############################
452-
FROM base_image as standard
452+
FROM base_image AS standard
453453

454454
# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
455455
ARG TARGETARCH

0 commit comments

Comments
 (0)