awesome-compose
awesome-compose copied to clipboard
containers not coming up due to "unknown instruction" for backend image
Hi, I have imported this project and was running the project using docker compose file but getting below error:
xxxxxxxxxxxxxx:~/app/awesome-compose/react-java-mysql# docker-compose up -d Building backend Sending build context to Docker daemon 25.09kB Error response from daemon: dockerfile parse error line 14: unknown instruction: APT-GET ERROR: Service 'backend' failed to build : Build failed.
Tried commenting APT-GET instruction but then similar errors are seen for subsequent commands.
Hi @rkhanna1401! Thanks for opening an issue.
The error you're seeing is most likely due to an older version of the Docker builder. Support for heredoc in the Dockerfile was added around July of 2021 (blog post here). Take a look at what version of Docker you're running and consider updating where possible.
If you're still having issues, let us know and we'll help you dive in deeper.