@@ -5,20 +5,20 @@ ARG JDK_VERSION='17'
5
5
# Set by the micronaut BOM, see pom.xml
6
6
ARG GRAAL_VERSION='22.3.0'
7
7
8
- FROM alpine:3 as alpine
8
+ FROM alpine:3 AS alpine
9
9
10
10
# Keep in sync with the version in pom.xml
11
11
FROM ghcr.io/graalvm/graalvm-ce:ol8-java${JDK_VERSION}-${GRAAL_VERSION} AS graal
12
12
13
- FROM graal as maven-cache
13
+ FROM graal AS maven-cache
14
14
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
15
15
WORKDIR /app
16
16
COPY .mvn/ /app/.mvn/
17
17
COPY mvnw /app/
18
18
COPY pom.xml /app/
19
19
RUN ./mvnw dependency:resolve-plugins dependency:go-offline -B
20
20
21
- FROM graal as maven-build
21
+ FROM graal AS maven-build
22
22
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
23
23
COPY --from=maven-cache /mvn/ /mvn/
24
24
COPY --from=maven-cache /app/ /app
@@ -37,7 +37,7 @@ RUN ./mvnw package -DskipTests
37
37
RUN mv $(ls -S target/*.jar | head -n 1) /app/gitops-playground.jar
38
38
39
39
40
- FROM alpine as downloader
40
+ FROM alpine AS downloader
41
41
RUN apk add curl grep
42
42
# When updating,
43
43
# * 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
128
128
RUN chmod +r /dist/root/ && chmod g+rw /dist/root/.config/jgit/
129
129
130
130
# 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
132
132
ENV MAVEN_OPTS='-Dmaven.repo.local=/mvn'
133
133
RUN gu install native-image
134
134
RUN microdnf install gnupg
@@ -204,13 +204,13 @@ RUN native-image -Dgroovy.grape.enable=false \
204
204
205
205
206
206
207
- FROM alpine as prod
207
+ FROM alpine AS prod
208
208
# copy groovy cli binary from native-image stage
209
209
COPY --from=native-image /app/apply-ng app/apply-ng
210
210
ENTRYPOINT ["/app/apply-ng" ]
211
211
212
212
213
- FROM eclipse-temurin:${JDK_VERSION}-jre-alpine as dev
213
+ FROM eclipse-temurin:${JDK_VERSION}-jre-alpine AS dev
214
214
215
215
# apply-ng.sh is part of the dev image and allows trying changing groovy code inside the image for debugging
216
216
# Allow changing code in dev mode, less secure, but the intention of the dev image
0 commit comments