keaz / springbootbase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpringBoot Base Image

SpringBoot base image contains all the necessary dependencies. Image is based on Spring boot 2.1.6. Image will be built for java 8 and above versions.

Main purpose of this image is to use this as a builder image (in multistage build)

FROM keaz/springbootbase:latest as builder
WORKDIR /app
COPY src /app/src
COPY pom.xml /app/

RUN cd /app
RUN mvn clean install

ENTRYPOINT "ls -al target/"

FROM openjdk:11.0.3-jdk-slim-stretch

WORKDIR /app
COPY --from=builder /app/target/code-master.jar /app/
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -jar somce-jar.jar

About


Languages

Language:Shell 64.4%Language:Dockerfile 18.2%Language:Java 17.3%