Add multi-architecture support (AMD64 and ARM64) for Docker builds

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-18 19:15:11 +00:00
parent 3a7f4516f5
commit 11370b55b2
2 changed files with 13 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ jobs:
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}

View File

@@ -1,6 +1,17 @@
FROM python:3.11-slim 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"]