This repository has been archived on 2026-03-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
softwareengineering-2-modar.../Dockerfile
2025-07-09 17:09:57 +02:00

12 lines
307 B
Docker

FROM amazoncorretto:21-alpine AS builder
WORKDIR /app
ADD . .
RUN ./gradlew bootJar --no-daemon
FROM amazoncorretto:21-alpine
WORKDIR /app
COPY --from=builder /app/build/libs/* /app/swe2-wahl-immel-huber.jar
EXPOSE 8080/tcp
# VOLUME /app/resources
ENTRYPOINT ["java", "-jar", "swe2-wahl-immel-huber.jar"]