From 11370b55b25aaff544f5d4fb0d4a8cbc947e5abf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 19:15:11 +0000 Subject: [PATCH] Add multi-architecture support (AMD64 and ARM64) for Docker builds Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- .github/workflows/docker-publish.yml | 1 + backend/Dockerfile | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f94e03a..cce13c6 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -58,6 +58,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/backend/Dockerfile b/backend/Dockerfile index 9ea80cb..50ea8bc 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,6 +1,17 @@ FROM python:3.11-slim -COPY require +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY app.py . + +RUN mkdir -p /app/data + +EXPOSE 5000 + +CMD ["python", "app.py"]