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

docker : Error response from daemon: dockerfile parse error line 19: unknown instruction: APT-GET #347

Open jurivero opened 1 year ago

jurivero commented 1 year ago

run docker compose up -d on the angular example and I get docker : Error response from daemon: dockerfile parse error line 19: unknown instruction: APT-GET I am on a windows machine and I have installed docker for windows

Steph-gautier commented 1 year ago

Had this same issue today. We can see this: `RUN <<EOF apt-get update apt-get install -y --no-install-recommends git EOF

RUN <<EOF useradd -s /bin/bash -m vscode groupadd docker usermod -aG docker vscode EOF`

Probably wrong merges cause this

isidroas commented 1 year ago

That is called here-document.

This answer helped me: https://stackoverflow.com/a/75160729/16926605