Author : java12399900

I have the following multi-stage dockerfile that attempts to copy each module of my multi-module java maven project and build my ear file using mvn clean install. dockerfile: # Copy files from local to maven image and build ear FROM maven:3.5-jdk-8 AS build COPY module1 /usr/src/app/src COPY module2 /usr/src/app/src COPY module3 /usr/src/app/src COPY pom.xml /usr/src/app ..

Read more

I have the following Dockerfile for a very simple spring boot REST application: # Prepare runtime. FROM openjdk:8-jre-alpine AS runtime WORKDIR /app EXPOSE 80 # Prepare build workspace. FROM gradle:5.3.0-jdk-alpine AS sdk WORKDIR /build-workspace # Setup build workspace. USER root RUN chown -R gradle . USER gradle # Copy. COPY build.gradle . COPY gradle.properties . ..

Read more