gatsbyjs / gatsby-docker

Docker image that builds and hosts a Gatsby site
MIT License
357 stars 88 forks source link

Image at docker store is not working #4

Closed AlMaVizca closed 7 years ago

AlMaVizca commented 7 years ago

Hi!

Nice project.

I recently run the image and this is the error.

docker run --rm gatsbyjs/gatsby /sbin/nginx-boot: line 83: syntax error near unexpected tokenthen' /sbin/nginx-boot: line 83: if [ "" != "$DEBUG" ]; then'

Opening the file with: docker run --rm -it gatsbyjs/gatsby vi /sbin/nginx-boot

I saw that there are .. in between the if and [. Using cat I can't see that.

After modify that the error is:

bash-4.3# nginx-boot nginx: [emerg] open() "/run/nginx/nginx.pid" failed (2: No such file or directory)

If I create the /run/nginx directory, nginx works, but not yet gatsby.

KyleAMathews commented 7 years ago

@cusspvz any idea what's happening?

cusspvz commented 7 years ago

@KyleAMathews Fixed. Thanks for noticing it @krahser.

cusspvz commented 7 years ago

@krahser You can also use the onbuild tag which already has the command for adding the public/ folder.

KyleAMathews commented 7 years ago

Thanks!

On Wed, Feb 15, 2017, 4:08 AM José Moreira notifications@github.com wrote:

@krahser https://github.com/krahser You can also use the onbuild tag which already has the command for adding the public/ folder.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/gatsbyjs/gatsby-docker/issues/4#issuecomment-279994480, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEVh6WH8GlIkgQ-5V0yIBH_js_gqnoxks5rcuq0gaJpZM4MBZ6W .