Skip to content

Commit

Permalink
[feat] use openjdk for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
any1 committed May 9, 2020
1 parent 523d545 commit 5fbf7bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 117 deletions.
11 changes: 6 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN git clone --depth 1 https://github.com/xel-software/xel-lite-wallet /code
#
# Maven build
#
FROM maven:3.6.3-adoptopenjdk-11 as build
FROM maven:3.6.3-openjdk-11 as build

COPY --from=sources /code/ /build/

Expand All @@ -17,15 +17,16 @@ RUN cd /build && mvn package
#
# Final image
#
FROM adoptopenjdk:11-jre-openj9-bionic
FROM openjdk:11.0.7-jre-slim-buster

RUN mkdir /opt/app

COPY --from=build /build/xel-lite-wallet.jar /opt/app/xel-lite-wallet.jar
COPY --from=sources /code/docker/start-lite-wallet.sh /opt/app/start-lite-wallet.sh
COPY --from=build /build/xel-lite-wallet.jar /opt/app/xel-wallet.jar
COPY --from=sources /code/run.sh /opt/app/run.sh
COPY --from=sources /code/conf/ /opt/app/conf/
COPY --from=sources /code/html/ /opt/app/html/
COPY --from=sources /code/logs/ /opt/app/logs/

WORKDIR /opt/app
ENTRYPOINT bash start-lite-wallet.sh

CMD java ${JAVA_OPTS} -cp xel-wallet.jar:conf nxt.Nxt
112 changes: 0 additions & 112 deletions docker/start-lite-wallet.sh

This file was deleted.

0 comments on commit 5fbf7bb

Please sign in to comment.