diff --git a/client/Java/examples/employee-dashboard-app/docker/Dockerfile b/client/Java/examples/employee-dashboard-app/docker/Dockerfile index 4cd45c0d..3f808081 100644 --- a/client/Java/examples/employee-dashboard-app/docker/Dockerfile +++ b/client/Java/examples/employee-dashboard-app/docker/Dockerfile @@ -1,5 +1,5 @@ FROM eclipse-temurin:11-jdk-alpine as builder - +USER root WORKDIR /opt/app COPY .mvn/ .mvn COPY mvnw pom.xml ./ @@ -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"] \ No newline at end of file +ENTRYPOINT ["java","-jar","/opt/app/*.jar"] diff --git a/docker/build/Dockerfile b/docker/build/Dockerfile index c4fcf103..2aebfb69 100644 --- a/docker/build/Dockerfile +++ b/docker/build/Dockerfile @@ -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++ \ @@ -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 @@ -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