Add Dockerfile

This commit is contained in:
2025-09-05 01:17:25 -04:00
parent 9149d0ac20
commit e69d404e2e
10 changed files with 388 additions and 10 deletions

28
scripts/build.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
#!/usr/bin/env bash
echo "Building"
bun run build:tsc
# Declare array with proper syntax
filesToCopy=("index.html" "styles.css")
destination="dist"
# Create destination directory if it doesn't exist
mkdir -p "${destination}"
# Copy files from public directory
for file in "${filesToCopy[@]}"; do
echo "[public/${file}] --> [${destination}/public]"
# Check if source file exists
if [ -f "public/${file}" ]; then
cp "public/${file}" "${destination}/public"
else
echo "Warning: public/${file} not found, skipping..."
fi
done
echo "Build complete"