Skip to content

Commit

Permalink
# This is a combination of 21 commits.
Browse files Browse the repository at this point in the history
# This is the 1st commit message:

update

# This is the commit message IsantePlus#2:

Update ci.yml
# This is the commit message IsantePlus#3:

fix

# This is the commit message IsantePlus#4:

fix

# This is the commit message IsantePlus#5:

xds github workflow

# This is the commit message IsantePlus#6:

fix

# This is the commit message IsantePlus#7:

fix

# This is the commit message IsantePlus#8:

fix

# This is the commit message IsantePlus#9:

update

# This is the commit message IsantePlus#10:

update

# This is the commit message IsantePlus#11:

update

# This is the commit message IsantePlus#12:

update

# This is the commit message IsantePlus#13:

update

# This is the commit message IsantePlus#14:

update

# This is the commit message IsantePlus#15:

update

# This is the commit message IsantePlus#16:

update

# This is the commit message IsantePlus#17:

update

# This is the commit message IsantePlus#18:

update

# This is the commit message IsantePlus#19:

update

# This is the commit message IsantePlus#20:

update

# This is the commit message IsantePlus#21:

update
  • Loading branch information
HerbertYiga committed Oct 11, 2022
1 parent dbe5577 commit 1a48cde
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
# build stage build the jar with all our resources
FROM maven:3.6-jdk-8 as build
FROM openjdk:8-jdk as build

WORKDIR /app
VOLUME /tmp
WORKDIR /

ADD pom.xml ./
ADD . .

ADD src/main/resources ./src/main/resources
RUN apt-get update
RUN apt-get install -y maven
RUN mvn clean install -DskipTests

RUN mvn verify --fail-never
COPY mediator-xds-1.0.3-jar-with-dependencies.jar /root/mediator-xds-1.0.3-jar-with-dependencies.jar


ADD src ./src

RUN mvn clean package -DskipTests

FROM openjdk:8-jdk as run

COPY --from=build /app/target/mediator-xds-1.0.3-jar-with-dependencies.jar /mediator-xds-1.0.3-jar-with-dependencies.jar
COPY --from=build /app/src/main/resources/mediator.properties /mediator.properties

ENTRYPOINT java -jar /mediator-xds-1.0.3-jar-with-dependencies.jar --conf /mediator.properties
ENTRYPOINT java -jar mediator-xds-1.0.3-jar-with-dependencies.jar --conf mediator.properties

0 comments on commit 1a48cde

Please sign in to comment.