Files
springhello/Dockerfile
T
2026-03-26 01:02:10 +00:00

23 lines
405 B
Docker

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