podcraft_web_app / build_and_deploy.sh
Nagesh Muralidhar
Initial commit of PodCraft application
fd52f31
raw
history blame
726 Bytes
#!/bin/bash
set -e
echo "===> Building PodCraft for deployment <===="
# Navigate to frontend directory
echo "Building frontend..."
cd frontend/podcraft
# Install dependencies
echo "Installing frontend dependencies..."
npm install
# Build the frontend
echo "Creating production build..."
npm run build
# Back to root directory
cd ../../
# Make sure static directory exists
mkdir -p app/static
# Copy build to static directory (this will be mounted by FastAPI)
echo "Copying frontend build to static directory..."
cp -r frontend/podcraft/build/* app/static/
echo "Building Docker image..."
docker build -t podcraft-app .
echo "Build completed successfully!"
echo "You can now run: docker run -p 8000:8000 podcraft-app"