generated from polymech/site-template
22 lines
477 B
Bash
22 lines
477 B
Bash
#!/bin/bash
|
|
|
|
echo "Building PocketBase environment..."
|
|
|
|
# Create necessary directories if they don't exist
|
|
echo "Creating directories..."
|
|
mkdir -p pb_data
|
|
|
|
# Set proper permissions
|
|
echo "Setting permissions..."
|
|
chmod 755 pb_data
|
|
|
|
# Pull the latest PocketBase image
|
|
echo "Pulling latest PocketBase image..."
|
|
docker-compose pull
|
|
|
|
# Build the container
|
|
echo "Building container..."
|
|
docker-compose build
|
|
|
|
echo "Build complete!"
|
|
echo "You can now start PocketBase with: ./start.sh" |