Skip to content

Commit

Permalink
[Ref] Fix Docker warnings w.r.t. names and keyword casing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed Dec 10, 2024
1 parent d359b91 commit 92b0f90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM gradle:8.0.2-jdk11-alpine as build
FROM gradle:8.0.2-jdk11-alpine AS build
RUN mkdir annotace
WORKDIR /annotace
COPY . .
RUN gradle bootJar -x test

FROM eclipse-temurin:11-jdk-alpine as runtime
FROM eclipse-temurin:11-jdk-alpine AS runtime
COPY --from=build /annotace/core/build/libs/*.jar /
RUN mv annotace*.jar annotace.jar

Expand Down
8 changes: 4 additions & 4 deletions Dockerfile-morphodita
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ ARG MORPHODITA_ZIP_SO

########################################################################################################################

FROM alpine as unzip
FROM alpine AS unzip
ARG MORPHODITA_ZIP
RUN mkdir morphodita
COPY $MORPHODITA_ZIP /morphodita
WORKDIR /morphodita
RUN unzip *.zip

FROM gradle:8.0.2-jdk11-alpine as buildMaven
FROM gradle:8.0.2-jdk11-alpine AS build
ARG MORPHODITA_ZIP_SO
RUN mkdir annotace
WORKDIR /annotace
COPY . .
RUN gradle clean bootJar -x test

FROM eclipse-temurin:11-jdk-alpine as runtime
FROM eclipse-temurin:11-jdk-alpine AS runtime
ARG MORPHODITA_ZIP_SO
# Work around an issue with missing library on Alpine Linux - https://www.svlada.com/fun-times-with-gcc-musl-alpine-linux/
RUN apk add --update --no-cache libc6-compat
COPY --from=buildMaven /annotace/core/build/libs/annotace-*.jar /
COPY --from=build /annotace/core/build/libs/annotace-*.jar /
RUN mv *.jar annotace.jar
COPY --from=unzip /morphodita/$MORPHODITA_ZIP_SO /lib

Expand Down

0 comments on commit 92b0f90

Please sign in to comment.