Skip to content
Snippets Groups Projects
build.sh 285 B
Newer Older
  • Learn to ignore specific revisions
  • Matthias Feyll's avatar
    Matthias Feyll committed
    #!/usr/bin/env sh
    
    IMAGE=node:23-alpine3.20
    
    docker run --rm \
        -v $(pwd):/app \
        -w /app \
        -u $(id -u):$(id -g) \
        $IMAGE \
    
        yarn && yarn build
    
    Matthias Feyll's avatar
    Matthias Feyll committed
    
    if [ $? -ne 0 ]; then
        echo "Error while building frontend app"
        exit 1
    fi
    
    echo "Build successfully in $(pwd)/dist"