-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile Nistagram Admin Microservice (#20)
- Loading branch information
1 parent
87377e4
commit 7d5f66f
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# The final image build process will use this build image as a base image | ||
# that will already have all the dependencies inside it. Even if there is a new dependency | ||
# added in pom.xml the final image will only download that delta dependency as the rest of the | ||
# dependencies would already be present via base builder image. | ||
FROM stevicdule/mvn-base-nistagram-admin:1.0.0-dev AS appBuild | ||
ARG STAGE=dev | ||
LABEL maintainer="stevicdule@gmail.com" | ||
|
||
WORKDIR /usr/src/admin_service | ||
COPY . . | ||
RUN mvn package -P${STAGE} -DskipTests | ||
|
||
FROM openjdk:8-jdk-alpine AS appRuntime | ||
WORKDIR /app | ||
COPY --from=appBuild /usr/src/admin_service/target/admin_service.jar ./ | ||
EXPOSE 8080 | ||
CMD java -jar admin_service.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters