All checks were successful
Build and test / build-and-test (push) Successful in 19m6s
Co-authored-by: Andreas Svanberg <andreass@dsv.su.se> Co-committed-by: Andreas Svanberg <andreass@dsv.su.se>
33 lines
733 B
Docker
33 lines
733 B
Docker
FROM debian:bookworm AS build
|
|
|
|
RUN apt-get update && apt-get install -y openjdk-17-jdk-headless
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pom.xml .
|
|
COPY .mvn/ .mvn/
|
|
COPY mvnw .
|
|
COPY api/pom.xml api/pom.xml
|
|
COPY core/pom.xml core/pom.xml
|
|
COPY view/pom.xml view/pom.xml
|
|
COPY war/pom.xml war/pom.xml
|
|
COPY daisy-integration/pom.xml daisy-integration/pom.xml
|
|
|
|
COPY api/src/ api/src/
|
|
COPY core/src/ core/src/
|
|
COPY view/src/ view/src/
|
|
COPY war/src/ war/src/
|
|
COPY daisy-integration/src/ daisy-integration/src/
|
|
|
|
RUN ./mvnw package \
|
|
--define skipTests \
|
|
--activate-profiles branch,DEV \
|
|
--define skip.npm \
|
|
--define skip.installnodenpm
|
|
|
|
FROM tomcat:10 AS run
|
|
|
|
COPY --from=build /app/war/target/*.war /usr/local/tomcat/webapps/ROOT.war
|
|
|
|
EXPOSE 8080
|