mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-22 16:11:38 +03:00
17 lines
876 B
Docker
17 lines
876 B
Docker
FROM nick1udwig/buildbase:latest
|
|
|
|
ENV NVM_DIR=/root/.nvm \
|
|
PATH="/root/.nvm/versions/node/$(node -v)/bin:${PATH}"
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
python3 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Bind readonly & copy files in to avoid modifying host files
|
|
WORKDIR /usr/src/kinode
|
|
|
|
# Set the default command to run the build script
|
|
# TODO: once build is idempotent, remove the `rm -rf` line
|
|
CMD ["/bin/bash", "-c", ". ~/.bashrc && . ~/.cargo/env && . $NVM_DIR/nvm.sh && rm -rf target/ kinode/packages/*/pkg/*wasm kinode/packages/*/*/target/ kinode/packages/*/pkg/api.zip kinode/packages/*/*/wit && ./scripts/build-release.py && cp -r /tmp/kinode-release/* /output && chmod 664 /output/* && rm -rf target/ kinode/packages/*/pkg/*wasm kinode/packages/*/*/target/ kinode/packages/*/pkg/api.zip kinode/packages/*/*/wit"]
|