diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml deleted file mode 100644 index 14c81f8..0000000 --- a/.github/workflows/docker-publish.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Build and Push Multi-Platform Docker Image - -on: - push: - tags: - - 'v*.*.*' - workflow_dispatch: - inputs: - version: - description: 'Version tag (e.g., 2.3.0)' - required: true - type: string - -env: - REGISTRY: docker.io - IMAGE_NAME: tmfrisinger/webcat - -jobs: - build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract version - id: version - run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT - else - echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT - fi - - - name: Extract metadata (tags, labels) - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.IMAGE_NAME }} - tags: | - type=semver,pattern={{version}},value=${{ steps.version.outputs.version }} - type=semver,pattern={{major}}.{{minor}},value=${{ steps.version.outputs.version }} - type=raw,value=latest - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - file: docker/Dockerfile - platforms: linux/amd64,linux/arm64 - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache - cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max - - - name: Image digest - run: echo ${{ steps.build.outputs.digest }} - - - name: Verify multi-platform manifest - run: | - docker buildx imagetools inspect ${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }} diff --git a/docker/Dockerfile b/docker/Dockerfile index baa3b7c..e07cba9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -23,7 +23,6 @@ ENV PYTHONUNBUFFERED=1 ENV PORT=8000 ENV LOG_LEVEL=INFO ENV LOG_DIR=/var/log/webcat -ENV WEBCAT_MODE=demo # Expose the port EXPOSE 8000 @@ -32,4 +31,4 @@ EXPOSE 8000 WORKDIR /app/docker # Command to run the application -CMD ["python", "cli.py", "--mode", "demo", "--host", "0.0.0.0"] +CMD ["python", "mcp_server.py"]