mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-22 08:01:47 +03:00
15 lines
511 B
Docker
15 lines
511 B
Docker
FROM nick1udwig/buildbase:latest
|
|
|
|
ENV NVM_DIR=/root/.nvm \
|
|
PATH="/root/.nvm/versions/node/$(node -v)/bin:${PATH}"
|
|
|
|
RUN . ~/.bashrc \
|
|
&& . ~/.cargo/env \
|
|
&& . $NVM_DIR/nvm.sh \
|
|
&& cargo install --git https://github.com/kinode-dao/kit --locked
|
|
|
|
WORKDIR /input
|
|
|
|
# Set the default command to run the build script
|
|
CMD ["/bin/bash", "-c", ". ~/.bashrc && . ~/.cargo/env && . $NVM_DIR/nvm.sh && kit build /input && find /input -type d -exec chmod 777 {} + && find /input -type f -exec chmod 666 {} +"]
|