qgis / qgis-docker

Official Docker image for QGIS Server and Desktop
GNU Affero General Public License v3.0
75 stars 24 forks source link

/bin/sh: 1: /usr/local/bin/start-xvfb-nginx.sh: not found #76

Closed lowlyocean closed 1 year ago

lowlyocean commented 2 years ago

Installed latest docker-desktop as well as heroku-cli via Chocolately in Win10

After cloning the repo, this error happens when running image produced via heroku container:push and heroku container:release

CowboyCoderForever commented 2 years ago

I've seen this as well. It stems from developing between Windows and Linux. I think there are two problems:

I think I have this fixed by modifying the Dockerfile as such:

...
ADD start-xvfb-nginx.sh /usr/local/bin/start-xvfb-nginx.sh
RUN chmod +x /usr/local/bin/start-xvfb-nginx.sh
...

And by ensuring the start-xvfb-nginx.sh is checked out with "LF" line endings before building the Docker image.