dot-agent / nextpy

🤖Self-Modifying Framework from the Future 🔮 World's First AMS
https://dotagent.ai
Apache License 2.0
2.2k stars 155 forks source link

Unknown instruction CMD["nextpy","init","&&","nextpy","run"] #134

Closed anirudh-hegde closed 8 months ago

anirudh-hegde commented 9 months ago

FROM python:3.8-alpine WORKDIR /app COPY Casper.py . COPY requirements.txt . RUN pip install -r requirements.txt CMD["nextpy","init","&&","nextpy","run"]

When I try to build, it shows the error: ERROR: failed to solve: dockerfile parse error on line 7: unknown instruction: CMD["nextpy","run"]

anirudh-hegde commented 8 months ago

Somebody please reply

tianyax commented 8 months ago

This shouldn't be a nextpy problem, from your description it should be a Dockerfile syntax mistake.. Change line 6 to CMD ["nextpy", "init", "&&", "nextpy", "run"] and try again.

anirudh-hegde commented 8 months ago

This shouldn't be a nextpy problem, from your description it should be a Dockerfile syntax mistake.. Change line 6 to CMD ["nextpy", "init", "&&", "nextpy", "run"] and try again.

Can you please explain how your syntax differs from my syntax

tianyax commented 8 months ago

This shouldn't be a nextpy problem, from your description it should be a Dockerfile syntax mistake.. Change line 6 to CMD ["nextpy", "init", "&&", "nextpy", "run"] and try again.

Can you please explain how your syntax differs from my syntax

@anirudh-hegde CMD requires a space to distinguish that this is a keyword recognized by the Dockerfile. Just from the description looks like this

anirudh-hegde commented 8 months ago

This shouldn't be a nextpy problem, from your description it should be a Dockerfile syntax mistake.. Change line 6 to CMD ["nextpy", "init", "&&", "nextpy", "run"] and try again.

Can you please explain how your syntax differs from my syntax

@anirudh-hegde CMD requires a space to distinguish that this is a keyword recognized by the Dockerfile. Just from the description looks like this

Will try to execute

anirudh-hegde commented 8 months ago

Thank you, @tianyax, it's working