Created
February 28, 2023 22:11
-
-
Save gadmel/53b1f224062d1d589e4dc7cd1c6608ba to your computer and use it in GitHub Desktop.
Docker build script shell for frontend-backend-application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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