-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update images in docker hub #38
Comments
When I tested it a few weeks ago, it seemed both tags, latest and onbuild, include the nginx container. So the onbuild step from the Readme fails because this tag doesn't include Gatsby at all. |
In case anyone comes here looking for a solution. I wrote a short blog post about mine: https://fotoallerlei.com/blog/post/2020/dockerizing-a-gatsby-site/post In case the post is offline in the future, the Dockerfile looks like this:
The second build stage can be replaced with nginx to be more similar to the original solution of this repo here. |
nice, thanks @ekeih fwiw here's my Dockerfile using Nginx.
and my
You'll want to change the |
Hello @ekeih excellent contribution! I read your post, and implementing as it is, it works perfect. |
I still get this warning It still failes with: COPY failed: stat /var/lib/docker/tmp/docker-builder102637302/nginx.conf: no such file or directory |
@shicholas hi, how do you set the cache-control for |
@daydream05 you could add the string |
@shicholas thanks! I was able to fix it by removing that last location directive. Turns out |
Hello.
After debugging why my gatsby project doesn't build with these instructions I found out that docker hub has not been updated with the latest image.
Last Travis job #24 was run two months ago.
The text was updated successfully, but these errors were encountered: