Skip to content
Permalink
Browse files
fix dockerfile (#602)
  • Loading branch information
htynkn committed May 3, 2020
1 parent 6c101d2 commit 7dabd4b619f471daf10981cdb87e06497c3d6409
Showing 2 changed files with 9 additions and 9 deletions.
@@ -14,12 +14,12 @@
# limitations under the License.

FROM openjdk:8-jdk
RUN mkdir /source && wget https://github.com/apache/incubator-dubbo-ops/archive/0.1.zip && unzip 0.1.zip -d /source
WORKDIR /source/incubator-dubbo-admin-0.1
RUN mkdir /source && wget https://github.com/apache/dubbo-admin/archive/0.1.zip && unzip 0.1.zip -d /source
WORKDIR /source/dubbo-admin-0.1
RUN ./mvnw clean package -Dmaven.test.skip=true

FROM openjdk:8-jre
LABEL maintainer="dev@dubbo.apache.org"
COPY --from=0 /source/incubator-dubbo-admin-0.1/dubbo-admin-distribution/target/dubbo-admin-0.1.jar /app.jar
COPY --from=0 /source/dubbo-admin-0.1/dubbo-admin-distribution/target/dubbo-admin-0.1.jar /app.jar
ENTRYPOINT ["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
EXPOSE 8080
@@ -13,13 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM openjdk:8-jdk
RUN mkdir /source && wget https://github.com/apache/incubator-dubbo-admin/archive/0.2.0.zip && unzip 0.2.0.zip -d /source
WORKDIR /source/incubator-dubbo-admin-0.2.0
RUN ./mvnw clean package -Dmaven.test.skip=true
FROM maven:3-openjdk-8
RUN mkdir /source && wget https://github.com/apache/dubbo-admin/archive/0.2.0.zip && unzip -q 0.2.0.zip -d /source
WORKDIR /source/dubbo-admin-0.2.0
RUN mvn --batch-mode clean package -Dmaven.test.skip=true

FROM openjdk:8-jre
LABEL maintainer="dev@dubbo.apache.org"
COPY --from=0 /source/incubator-dubbo-admin-0.2.0/dubbo-admin-distribution/target/dubbo-admin-0.1.jar /app.jar
COPY --from=0 /source/dubbo-admin-0.2.0/dubbo-admin-distribution/target/dubbo-admin-0.2.0.jar /app.jar
ENTRYPOINT ["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
EXPOSE 8080
EXPOSE 8080

0 comments on commit 7dabd4b

Please sign in to comment.