Skip to content

Commit 80f13b1

Browse files
LinPrillume
authored andcommitted
Dockerfile: Fix lowercase AS warnings
1 parent 42d0537 commit 80f13b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# syntax=docker/dockerfile:1
22
# Final container image
33
ARG IMAGE_BASE=alpine:3.20.6@sha256:de4fe7064d8f98419ea6b49190df1abbf43450c1702eeb864fe9ced453c1cc5f
4-
FROM ${IMAGE_BASE} as image-base
4+
FROM ${IMAGE_BASE} AS image-base
55

6-
FROM --platform=${BUILDPLATFORM} golang:1.24.6@sha256:2c89c41fb9efc3807029b59af69645867cfe978d2b877d475be0d72f6c6ce6f6 as backend-build
6+
FROM --platform=${BUILDPLATFORM} golang:1.24.6@sha256:2c89c41fb9efc3807029b59af69645867cfe978d2b877d475be0d72f6c6ce6f6 AS backend-build
77

88
WORKDIR /headlamp
99

@@ -27,7 +27,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
2727
--mount=type=cache,target=/go/pkg/mod \
2828
cd ./backend && go build -o ./headlamp-server ./cmd/
2929

30-
FROM --platform=${BUILDPLATFORM} node:18@sha256:d0bbfdbad0bff8253e6159dcbee42141db4fc309365d5b8bcfce46ed71569078 as frontend-build
30+
FROM --platform=${BUILDPLATFORM} node:18@sha256:d0bbfdbad0bff8253e6159dcbee42141db4fc309365d5b8bcfce46ed71569078 AS frontend-build
3131

3232
# We need .git and app/ in order to get the version and git version for the frontend/.env file
3333
# that's generated when building the frontend.
@@ -40,7 +40,7 @@ COPY frontend/package*.json /headlamp/frontend/
4040
WORKDIR /headlamp
4141
RUN cd ./frontend && npm ci --only=prod
4242

43-
FROM frontend-build as frontend
43+
FROM frontend-build AS frontend
4444
COPY ./frontend /headlamp/frontend
4545

4646
WORKDIR /headlamp
@@ -64,15 +64,15 @@ RUN for i in $(find ./plugins-old/*/main.js); do plugin_name=$(echo $i|cut -d'/'
6464
RUN for i in $(find ./plugins-old/*/package.json); do plugin_name=$(echo $i|cut -d'/' -f3); mkdir -p plugins/$plugin_name; cp $i plugins/$plugin_name; done
6565

6666
# Static (officially shipped) plugins
67-
FROM --platform=${BUILDPLATFORM} frontend-build as static-plugins
67+
FROM --platform=${BUILDPLATFORM} frontend-build AS static-plugins
6868
RUN apt-get update && apt-get install -y jq
6969
COPY ./container/build-manifest.json ./container/fetch-plugins.sh /tools/
7070

7171
WORKDIR /tools
7272
RUN mkdir -p /plugins
7373
RUN ./fetch-plugins.sh /plugins/
7474

75-
FROM image-base as final
75+
FROM image-base AS final
7676

7777
RUN if command -v apt-get > /dev/null; then \
7878
apt-get update && apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)