Skip to content

How to run in macos ? #3

@GaoCan702

Description

@GaoCan702

=> ERROR [5/5] RUN python main.py 4.7s

[5/5] RUN python main.py:
4.696 Illegal instruction


1 warning found (use docker --debug to expand):

  • InvalidBaseImagePlatform: Base image registry.hf.space/microsoft-omniparser:latest was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 1)
    Dockerfile:15

13 |
14 | COPY main.py main.py
15 | >>> RUN python main.py
16 | CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]

ERROR: failed to solve: process "/bin/sh -c python main.py" did not complete successfully: exit code: 132

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions