Open janwillemb opened 11 months ago
docker-compose up stops with the message "end of file unexpected (expecting "then"):
=> [builder 1/19] RUN apt-get update && apt-get install -y autoconf autoconf-archive automake autotools-dev 123.6s => [builder 2/19] COPY docker/deployment/ /deployment/ 0.0s => [builder 3/19] COPY data/ /src/tscan/data 0.1s => [builder 4/19] COPY docker/data/ /src/tscan/docker/data/ 0.0s => [builder 5/19] WORKDIR /deployment 0.0s => ERROR [builder 6/19] RUN ./add-alpino.sh 0.5s ------ > [builder 6/19] RUN ./add-alpino.sh: #0 0.504 ./add-alpino.sh: 9: Syntax error: end of file unexpected (expecting "then") ------ failed to solve: executor failed running [/bin/sh -c ./add-alpino.sh]: exit code: 2
I'm using docker on Windows 10.
The problem is that the line endings are converted to CR+LF on checkout in case of Windows computers. To change this behavior, include a .gitattributes file that prevents the conversion. I created a PR #83.
docker-compose up stops with the message "end of file unexpected (expecting "then"):
I'm using docker on Windows 10.