Skip to content

Latest commit

 

History

118 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Maven Application: maven-employee-web-application

maven-employee-web-application.

References

How to build

docker build -t employee:4.0 .
docker build --build-arg git_url=https://github.com/Iniyan88/java-mave-helloworld.git --build-arg project_name=maven-employee-web-application  --build-arg artifact_id=employee -t employee:4.0 .
FROM alpine/git as gitclone
ARG git_url
WORKDIR /app
RUN git clone ${git_url}

FROM maven:3.8.2-openjdk-11 as build
ARG project_name
WORKDIR /app
COPY --from=gitclone /app/${project_name}/ ./
RUN mvn package

FROM tomcat:9.0
ARG artifact_id
ARG version
COPY --from=build /app/target/${artifact_id}.war /usr/local/tomcat/webapps
EXPOSE 8080

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages