Files
springhello/Dockerfile
T
2026-03-26 00:18:29 +00:00

21 lines
346 B
Docker

FROM maven:3.9.14-eclipse-temurin-21 AS builder
WORKDIR /usr/src/app
#COPY . /usr/src/app
RUN git clone https://gitea.dev.osnawiki.de/ds/springhello/
RUN mvn compile
FROM maven:3.9.14-eclipse-temurin-21
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/* .
EXPOSE 8080
ENTRYPOINT ["mvn"]
CMD ["spring-boot:run", "-Dmaven.test.skip"]