Closed anirudh-hegde closed 8 months ago
Somebody please reply
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.
This shouldn't be a
nextpy
problem, from your description it should be aDockerfile
syntax mistake.. Change line 6 toCMD ["nextpy", "init", "&&", "nextpy", "run"]
and try again.
Can you please explain how your syntax differs from my syntax
This shouldn't be a
nextpy
problem, from your description it should be aDockerfile
syntax mistake.. Change line 6 toCMD ["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
This shouldn't be a
nextpy
problem, from your description it should be aDockerfile
syntax mistake.. Change line 6 toCMD ["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 theDockerfile
. Just from the description looks like this
Will try to execute
Thank you, @tianyax, it's working
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"]