mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-22 11:22:59 +03:00
15 lines
1020 B
Docker
15 lines
1020 B
Docker
FROM nick1udwig/buildbase:latest
|
|
|
|
ARG DOCKER_BUILD_IMAGE_VERSION=latest
|
|
|
|
ENV NVM_DIR=/root/.nvm \
|
|
PATH="/root/.nvm/versions/node/$(node -v)/bin:${PATH}" \
|
|
DOCKER_BUILD_IMAGE_VERSION=$DOCKER_BUILD_IMAGE_VERSION
|
|
|
|
# Bind readonly & copy files in to avoid modifying host files
|
|
WORKDIR /input
|
|
|
|
# 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 kinode/packages/app_store/pkg/ui kinode/packages/homepage/pkg/ui kinode/src/register-ui/build && ./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 kinode/packages/app_store/pkg/ui kinode/packages/homepage/pkg/ui kinode/src/register-ui/build"]
|