Skip to content

Commit

Permalink
Merge pull request #90 from paypal/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
NeetishPathak authored May 11, 2023
2 parents 6a5b624 + c18eecb commit e770a59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions client/Java/examples/employee-dashboard-app/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM eclipse-temurin:11-jdk-alpine as builder

USER root
WORKDIR /opt/app
COPY .mvn/ .mvn
COPY mvnw pom.xml ./
Expand All @@ -8,7 +8,8 @@ COPY src ./src
RUN ./mvnw clean package -DskipTests

FROM eclipse-temurin:11-jdk-alpine
USER root
WORKDIR /opt/app
EXPOSE 8080
COPY --from=builder /opt/app/target/*.jar /opt/app/*.jar
ENTRYPOINT ["java","-jar","/opt/app/*.jar"]
ENTRYPOINT ["java","-jar","/opt/app/*.jar"]
8 changes: 4 additions & 4 deletions docker/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:16.04 AS juno-base

USER root
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y \
cmake \
g++ \
Expand All @@ -12,7 +12,7 @@ RUN tar xzvf go${GOLANG_VERSION}.linux-amd64.tar.gz -C /usr/local/

######
FROM juno-base as juno-dev-base

USER root
COPY /src/juno/third_party/rocksdb /vendor/src/rocksdb

WORKDIR /vendor/src/rocksdb
Expand All @@ -22,13 +22,13 @@ WORKDIR /

######
FROM juno-base as juno-dev

USER root
COPY --from=juno-dev-base /vendor/rocksdb/include /usr/local/include
COPY --from=juno-dev-base /vendor/rocksdb/lib /usr/local/lib

######
FROM juno-dev as builder

USER root
COPY /src/juno /juno
COPY /build.sh /build.sh

Expand Down

0 comments on commit e770a59

Please sign in to comment.