Initial Commit

This commit is contained in:
2026-01-11 10:27:06 -05:00
commit 04cffb964e
9 changed files with 1576 additions and 0 deletions

29
docker-build-push.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
set -e
# Configuration
# IMAGE_NAME="git.seth.services/seth/logo-txt"
IMAGE_NAME="ghcr.io/sethwv/logo-txt"
VERSION="${1:-latest}"
echo "Building Docker image for amd64 architecture..."
docker buildx build \
--platform linux/amd64 \
-t ${IMAGE_NAME}:${VERSION} \
-t ${IMAGE_NAME}:latest \
--load \
.
echo "Testing the image..."
docker run --rm ${IMAGE_NAME}:${VERSION} python -c "import flask; import PIL; print('Image OK')"
echo "Pushing image to Container Registry..."
docker push ${IMAGE_NAME}:${VERSION}
docker push ${IMAGE_NAME}:latest
echo "Done! Image pushed to:"
echo " ${IMAGE_NAME}:${VERSION}"
echo " ${IMAGE_NAME}:latest"
echo ""
echo "To run the container:"
echo " docker run -p 5001:5001 ${IMAGE_NAME}:latest"