Skip to content

Instantly share code, notes, and snippets.

@dennischen
Created November 15, 2023 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennischen/2ca6fb7c4a2707383d4925316409b711 to your computer and use it in GitHub Desktop.
Save dennischen/2ca6fb7c4a2707383d4925316409b711 to your computer and use it in GitHub Desktop.
Build nextspace-demo
My Working Evn:
ubuntu@20.04
docker@20.10
nodejs@18.18
yarn@1.22.19
#!/bin/bash
set -e
set -x
rm -rf nextspace-demo/
git clone git@github.com:dennischen/nextspace-demo.git --recursive
cd nextspace-demo/
cd nextspace/
yarn install
yarn test
yarn build
yarn dist
yarn release
cd ..
yarn install
yarn test
yarn build
docker build . -t nextspace-demo
vertag=v$(date '+%Y%m%d')
docker tag nextspace-demo:latest atticcat/nextspace-demo:$vertag
docker run -it -p 3000:3000 atticcat/nextspace-demo:$vertag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment