docker / awesome-compose

Awesome Docker Compose samples
https://docs.docker.com/compose/
Creative Commons Zero v1.0 Universal
34.57k stars 6.64k forks source link

Dockerfile parse error in NGINX-WSGI-Flask project #239

Open drintoul opened 2 years ago

drintoul commented 2 years ago

I replicated the project structure and all the files on my local machine and ran the following:

docker-compose up -d

This resulted in several successful steps then the following error:

[+] Building 0.1s (4/4) FINISHED
=> [nginx-wsgi-flask_nginx-proxy internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [nginx-wsgi-flask_flask-app internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [nginx-wsgi-flask_nginx-proxy internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [nginx-wsgi-flask_flask-app internal] load .dockerignore 0.0s => => transferring context: 2B
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 22: unknown instruction: COMMENTED