Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix substrate default storage location (#5064)
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor authored Mar 4, 2020
1 parent 23f6546 commit 69175fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .maintain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
export PATH="$PATH:$HOME/.cargo/bin" && \
rustup toolchain install nightly && \
rustup target add wasm32-unknown-unknown --toolchain nightly && \
rustup default nightly && \
rustup default stable && \
cargo build "--$PROFILE"

Expand All @@ -34,9 +33,10 @@ ARG PROFILE=release
RUN mv /usr/share/ca* /tmp && \
rm -rf /usr/share/* && \
mv /tmp/ca-certificates /usr/share/ && \
mkdir -p /root/.local/share/Polkadot && \
ln -s /root/.local/share/Polkadot /data && \
useradd -m -u 1000 -U -s /bin/sh -d /substrate substrate
useradd -m -u 1000 -U -s /bin/sh -d /substrate substrate && \
mkdir -p /substrate/.local/share/substrate && \
chown -R substrate:substrate /substrate/.local && \
ln -s /substrate/.local/share/substrate /data

COPY --from=builder /substrate/target/$PROFILE/substrate /usr/local/bin

Expand All @@ -49,7 +49,7 @@ RUN rm -rf /usr/lib/python* && \
rm -rf /usr/bin /usr/sbin /usr/share/man

USER substrate
EXPOSE 30333 9933 9944
EXPOSE 30333 9933 9944 9615
VOLUME ["/data"]

CMD ["/usr/local/bin/substrate"]

0 comments on commit 69175fb

Please sign in to comment.