sudo apt install nodejs npm
npm install
or
yarn install
yarn build
or
npm run build
npm start
To specify the path from where the app is served (https://example.com/bdms) you can specify the environment variable as follows:
PUBLIC_URL=/bdms npm run build
Clone server repository, and run the build command.
git clone https://github.com/geoadmin/web-bdms.git
cd service-bdms
version=$(cat ./VERSION.txt)
DOCKER_BUILDKIT=1 \
docker build -t swisstopo/service-bdms-nginx:$version .
If you are preparing a beta just change the version:
version=$(cat ./VERSION.txt)-beta.$(date +%Y%m%d)
username=geoadmin
DOCKER_BUILDKIT=1 \
docker build \
-t ghcr.io/$username/web-bdms/service-bdms-nginx:$version .
docker push ghcr.io/$username/web-bdms/service-bdms-nginx:$version
Stable release:
version=$(cat ./VERSION.txt)
DOCKER_BUILDKIT=1 \
docker build \
-t swisstopo/service-bdms-nginx:$version .
docker push swisstopo/service-bdms-nginx:$version
To specify the path from where the app is served (https://example.com/bdms) you can specify the environment variable as follows:
git clone https://github.com/geoadmin/web-bdms.git
cd service-bdms
version=$(cat ./VERSION.txt)
docker build -e PUBLIC_URL=/subpath -t swisstopo/service-bdms-nginx:$version .
Run Docker container:
sudo docker run -d \
--name service-bdms-nginx \
swisstopo/service-bdms-nginx:x.x.x