chore: add Dockerfile to build API image
This commit is contained in:
parent
06539a05fc
commit
b990556db6
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM maven:3.9-eclipse-temurin-21-alpine AS build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN mvn clean package -DskipTests
|
||||||
|
|
||||||
|
FROM openjdk:21-jdk
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app/bootstrap/target/*.jar app.jar
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT ["java","-jar","app.jar"]
|
Loading…
x
Reference in New Issue
Block a user