Fixed docker build hook to build for all architectures

This commit is contained in:
Utkarsh-Patel-13 2025-08-01 13:07:29 -07:00
parent 0926e1f393
commit d4f0613865
2 changed files with 10 additions and 6 deletions

View file

@ -142,6 +142,9 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@ -163,6 +166,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
# Optional: Add build cache for faster builds
cache-from: type=gha
cache-to: type=gha,mode=max
@ -185,6 +189,9 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@ -206,6 +213,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
# Optional: Add build cache for faster builds
cache-from: type=gha
cache-to: type=gha,mode=max

View file

@ -2,9 +2,7 @@ version: '3.8'
services:
frontend:
build:
context: ./surfsense_web
dockerfile: Dockerfile
image: ghcr.io/modsetter/surfsense_ui:latest
ports:
- "${FRONTEND_PORT:-3000}:3000"
volumes:
@ -18,9 +16,7 @@ services:
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://backend:8000}
backend:
build:
context: ./surfsense_backend
dockerfile: Dockerfile
image: ghcr.io/modsetter/surfsense_backend:latest
ports:
- "${BACKEND_PORT:-8000}:8000"
volumes: