Skip to content

Instantly share code, notes, and snippets.

@gadmel
Created February 28, 2023 22:11
Show Gist options
  • Save gadmel/53b1f224062d1d589e4dc7cd1c6608ba to your computer and use it in GitHub Desktop.
Save gadmel/53b1f224062d1d589e4dc7cd1c6608ba to your computer and use it in GitHub Desktop.
Docker build script shell for frontend-backend-application
cd frontend || exit
npm ci
npm run build
rm -rf ../backend/src/main/resources/static
mv build ../backend/src/main/resources/static
cd ../backend || exit
./mvnw clean package
cd ..
docker build -t {name-of-the-docker-image} .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment