16 lines
No EOL
245 B
Docker
16 lines
No EOL
245 B
Docker
FROM ubuntu:latest AS build
|
|
|
|
RUN apt update
|
|
RUN apt install openjdk-21-jdk -y
|
|
|
|
COPY . .
|
|
|
|
RUN apt install maven -y
|
|
|
|
RUN mvn clean install
|
|
|
|
EXPOSE 8080
|
|
|
|
COPY --from=build /target/todolist-1.0.0.jar app.jar
|
|
|
|
ENTRYPOINT [ "java", "-jar", "app.jar" ] |