Replies: 1 comment 2 replies
-
I'm new to docker myself, but isn't the idea of docker that you build the image once and only ship the image? If Might require more tooling work, but I think that's one of the features of Docker, no? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am deploying a next js application on ec2 t2.micro instance via docker.
'next build' command takes a long time & I suspect with increasing page numbers it will probably stall as there is only 1 GB ram available on a t2.micro instance.
One possibility is that I run 'next build' on my local machine and then push .next folder to the ec2 instance via git, that way I can skip the 'next build' step on the instance itself.
Is this is reasonable course of action or 'next build' should be run on the ec2 instance?
My docker file is as follows:
My relevant docker compose section is:
Also as the ec2 instance deployment is production, please suggest any changes in the docker file that my not be required in prod, such as the volume creation.
Beta Was this translation helpful? Give feedback.
All reactions