Skip to main content
Module

x/subshell/Dockerfile

Substrate API playground in a Deno πŸ¦• repl, using polkadot-js extension as remote signer ✍️. Say goodbye to hardcoded mnemonics / seeds in dev scripts!πŸ‘‹
Go to Latest
File
FROM btwiuse/k0s AS k0s
FROM btwiuse/dkg AS dkg
# cargo build --release && cd ./target/release/ && cp deno subshell && dkg push -i btwiuse/subshell:bin -f subshellFROM btwiuse/subshell:bin AS subshell-bin
FROM btwiuse/arch:deno
ENV RUNNING_IN_DOCKER=1
RUN pacman -Syu --noconfirm --needed --overwrite='*' htop neofetch figlet
COPY --from=k0s /usr/bin/k0s /bin/hubCOPY --from=dkg /bin/dkg /bin# COPY --from=subshell-bin --chmod=777 /subshell /binCOPY --from=subshell-bin /subshell /bin
RUN chmod a+rx /bin/subshell
RUN ln -sf /bin/hub /bin/agent
ADD subsh-deno /bin/
WORKDIR /app
COPY *.ts ./COPY .github/ ./COPY deno.json ./COPY package.json ./
ENV DENO_DIR=/cache
RUN subsh-deno cache
RUN useradd -N subshell
RUN chown -R subshell /cache
COPY deno_history.txt /cache/RUN chown root:root /cache/deno_history.txtRUN chmod 644 /cache/deno_history.txt
USER subshell
ENV SUBSHELL_VERSION 0.2.43-1
CMD hub