nectar/Dockerfile.buildpackage

15 lines
511 B
Docker
Raw Normal View History

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
2024-10-01 01:54:04 +03:00
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 {} +"]