1
0
mirror of https://github.com/ACINQ/eclair.git synced 2025-01-19 13:43:43 +01:00

Fix Docker JAVA_OPTS expansion (#1561)

This commit is contained in:
Donovan 2020-10-13 11:44:34 +02:00 committed by GitHub
parent 4b55d3e71c
commit 3e3397cfb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ RUN chmod +x eclair-cli && mv eclair-cli /sbin/eclair-cli
# we only need the eclair-node.zip to run
COPY --from=BUILD /usr/src/eclair-node/target/eclair-node-*.zip ./eclair-node.zip
RUN unzip eclair-node.zip && mv eclair-node-* eclair-node
RUN unzip eclair-node.zip && mv eclair-node-* eclair-node && chmod +x eclair-node/bin/eclair-node.sh
ENV ECLAIR_DATADIR=/data
ENV JAVA_OPTS=
@ -63,4 +63,4 @@ ENV JAVA_OPTS=
RUN mkdir -p "$ECLAIR_DATADIR"
VOLUME [ "/data" ]
ENTRYPOINT $JAVA_OPTS bash eclair-node/bin/eclair-node.sh -Declair.datadir=$ECLAIR_DATADIR
ENTRYPOINT JAVA_OPTS="${JAVA_OPTS}" eclair-node/bin/eclair-node.sh "-Declair.datadir=${ECLAIR_DATADIR}"