test build
All checks were successful
Deploy API / docker (ubuntu-latest, 2.44.0) (push) Successful in 27s
All checks were successful
Deploy API / docker (ubuntu-latest, 2.44.0) (push) Successful in 27s
This commit is contained in:
parent
be9cbc2de4
commit
3da1f61605
@ -1,5 +1,5 @@
|
|||||||
# Stage 1: Build the application
|
# Stage 1: Build the application
|
||||||
FROM maven:3.9.9-eclipse-temurin-21-alpine AS builder
|
FROM maven:3.9.6-eclipse-temurin-17-alpine AS builder
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /home/container
|
WORKDIR /home/container
|
||||||
@ -11,7 +11,7 @@ COPY . .
|
|||||||
RUN mvn package -T2C -Dmaven.test.skip -DskipTests
|
RUN mvn package -T2C -Dmaven.test.skip -DskipTests
|
||||||
|
|
||||||
# Stage 2: Create the final lightweight image
|
# Stage 2: Create the final lightweight image
|
||||||
FROM eclipse-temurin:21-jre-alpine
|
FROM eclipse-temurin:17.0.11_9-jre-focal
|
||||||
|
|
||||||
# Install Git
|
# Install Git
|
||||||
RUN apt-get update && apt-get install git -y
|
RUN apt-get update && apt-get install git -y
|
||||||
|
2
pom.xml
2
pom.xml
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<!-- Properties -->
|
<!-- Properties -->
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>21</java.version>
|
<java.version>17</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user