Skip to content
Merged
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ RUN apt-get update && \

ARG TARGETARCH
COPY stellar-${TARGETARCH}/stellar /usr/local/bin/stellar
RUN chmod +x /usr/local/bin/stellar

ENV STELLAR_CONFIG_HOME=/config
ENV STELLAR_DATA_HOME=/data

RUN chmod +x /usr/local/bin/stellar
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
Comment thread
leighmcculloch marked this conversation as resolved.

WORKDIR /source

ENTRYPOINT ["/usr/local/bin/stellar"]
ENTRYPOINT ["/usr/local/bin/entrypoint.sh", "stellar"]
CMD []
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

Comment thread
leighmcculloch marked this conversation as resolved.
if ! rustup target add wasm32v1-none; then
echo "warning: failed to install rust target wasm32v1-none; continuing so non-build commands can still run" >&2
Comment thread
leighmcculloch marked this conversation as resolved.
fi
exec "$@"
Loading