-
Notifications
You must be signed in to change notification settings - Fork 443
V4 images on DockerHub #321
Comments
I was a bit confused when I followed the Docker installation on documentation page for Strapi v4 and got v3.6.8 in the end. Docs should point out that it's not yet an v4 image, otherwise people waste their time 😉. |
Same issue here. |
Same here. |
Waiting for this to migrate |
same issue here |
same here |
Same here There is a workaround though to get it running relatively easy in the meanwhile. Here is the updated Dockerfile |
Same here |
Please use the 👍 reaction on the initial message to share your interest. Posting the same message over and over creates noise by notifying everyone following this thread for no added value. |
Nope. In the background it tries to install the needed version from the yarn repository, but the latest version of strapi in yarn is:
|
They changed the npm package name from |
Here's my 2 cents Docker-compose.yml
Dockerfile
and finally the It works on my ubuntu 18.04 machine |
Wouldn't it be better to just have a Github Action in the main repo that creates and publishes a new Docker image for every version that gets released? An extra repo looks like manual maintenance overhead at the cost of outdated Docker images |
Is anyone even maintaining this? |
Hey all. I'm using Strapi hosted on AWS Fargate in production at a startup I CTO for, so the lack of maintenance of this repo has been somewhat frustrating since I want to upgrade to Strapi 4. Buoyed by @benjaminpreiss's comment above, I decided to fork the repo and have a go at generating my own base images: https://github.com/grafaio/strapi-docker This may be useful to others. My changes are:
At this point, I was able to build both the Debian and Alpine base boxes locally, and the subsequent Strapi derivatives using the somewhat old school build script as referenced at the bottom of the README:
From here I've been able to Hopefully my changes help someone else who finds this issue. If the maintainers want me to open a PR, just let me know. |
I have made an updated version here egahmad/strapi-docker:latest https://hub.docker.com/repository/docker/egahmad/strapi-docker It's working in my end, the update was by this fork https://github.com/egahmad/strapi-docker |
If you want to install the graphql plugin, you can encounter a compatibility error.
You must update the
You can now add the
|
For those who don't want to mess around with compose handling image building, and maybe having a locally tagged docker image for use. As others have noted, there is a single change needed to be made into the strapi Dockerfile, given the npm package is scoped. strapi/Dockerfile
Building / Tagging
Running Once built, the entrypoint allows the run command to pass parameters at the end, so just use
Obviously, this could still be used in a |
If anyone else is currently struggling with the Docker build of V4. There is currently a strapi third lib problem, which caused in my case a heap error each time when trying to create the docker build, even though I tried to increase the memory to the moon. 🌕 Solution add to your package.json and rebuild the node_modules
Cheers |
Is there any plan for that ? I would like to use this docker image with the version >4 of Strapi. |
I have found |
Hi, Any news on this? Thanks |
Hi, Any news on this? |
Hi |
See the update edit in the original post. Going to lock this for now as we are well aware everyone wants docker images but at this time it's a low priority on our side as we never recommend using our images for production usage. |
Edit by: @derrickmehaffy
We have delayed docker image building until further notice due to higher priority tasks
Currently we are promoting/recommending the following community article: https://blog.dehlin.dev/docker-with-strapi-v4
Of if you are wanting to use docker with Heroku this one: https://blog.dehlin.dev/strapi-v4-with-docker-and-heroku
(Thank you @Eventyret)
When will the images be officially pushed to V4 on DockerHub?
The text was updated successfully, but these errors were encountered: