Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartinsanta authored Jan 5, 2025
1 parent bb48f15 commit ac46653
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3-eclipse-temurin-21 as build
FROM maven:3-eclipse-temurin-21 AS build
RUN mkdir /build
WORKDIR /build
COPY ./pom.xml pom.xml
Expand All @@ -8,15 +8,15 @@ RUN mvn dependency:go-offline -B

# copy sources and compile
COPY ./src src
RUN mvn clean package -B && cp target/__RNAME__*.jar app.jar
RUN mvn clean package -B -Dmaven.test.skip=true

FROM eclipse-temurin:21-alpine as run
FROM eclipse-temurin:21-alpine AS run

# Remember to add extra files if needed by your project
COPY instances /instances
COPY *.csv *.tsv /
COPY --from=build /root/.m2 /root/.m2
COPY --from=build /build/app.jar /app.jar
COPY --from=build /build/target/*.jar /app.jar

CMD [\
"java",\
Expand Down

0 comments on commit ac46653

Please sign in to comment.