Skip to content

Commit c8a22e3

Browse files
committed
Fix warnings in Dockerfile
WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match
1 parent 8bf4e5a commit c8a22e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ ARG JDK_VERSION='17'
55
# Set by the micronaut BOM, see pom.xml
66
ARG GRAAL_VERSION='22.3.0'
77

8-
FROM alpine:3 as alpine
8+
FROM alpine:3 AS alpine
99

1010
# Keep in sync with the version in pom.xml
1111
FROM ghcr.io/graalvm/graalvm-ce:ol8-java${JDK_VERSION}-${GRAAL_VERSION} AS graal
1212

13-
FROM graal as maven-cache
13+
FROM graal AS maven-cache
1414
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
1515
WORKDIR /app
1616
COPY .mvn/ /app/.mvn/
1717
COPY mvnw /app/
1818
COPY pom.xml /app/
1919
RUN ./mvnw dependency:resolve-plugins dependency:go-offline -B
2020

21-
FROM graal as maven-build
21+
FROM graal AS maven-build
2222
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
2323
COPY --from=maven-cache /mvn/ /mvn/
2424
COPY --from=maven-cache /app/ /app
@@ -37,7 +37,7 @@ RUN ./mvnw package -DskipTests
3737
RUN mv $(ls -S target/*.jar | head -n 1) /app/gitops-playground.jar
3838

3939

40-
FROM alpine as downloader
40+
FROM alpine AS downloader
4141
RUN apk add curl grep
4242
# When updating,
4343
# * also update the checksum found at https://dl.k8s.io/release/v${K8S_VERSION}/bin/linux/amd64/kubectl.sha256
@@ -128,7 +128,7 @@ RUN touch /dist/root/.config/jgit/config
128128
RUN chmod +r /dist/root/ && chmod g+rw /dist/root/.config/jgit/
129129

130130
# This stage builds a static binary using graal VM. For details see docs/developers.md#GraalVM
131-
FROM graal as native-image
131+
FROM graal AS native-image
132132
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
133133
RUN gu install native-image
134134
RUN microdnf install gnupg
@@ -204,13 +204,13 @@ RUN native-image -Dgroovy.grape.enable=false \
204204

205205

206206

207-
FROM alpine as prod
207+
FROM alpine AS prod
208208
# copy groovy cli binary from native-image stage
209209
COPY --from=native-image /app/apply-ng app/apply-ng
210210
ENTRYPOINT ["/app/apply-ng"]
211211

212212

213-
FROM eclipse-temurin:${JDK_VERSION}-jre-alpine as dev
213+
FROM eclipse-temurin:${JDK_VERSION}-jre-alpine AS dev
214214

215215
# apply-ng.sh is part of the dev image and allows trying changing groovy code inside the image for debugging
216216
# Allow changing code in dev mode, less secure, but the intention of the dev image

0 commit comments

Comments
 (0)