-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
how to create a clean Dockerfile for razzle react app ? #916
Comments
Razzle just produces a node server, so we can just aim to make a container for that. Something as simple as this can suffice: https://gist.github.com/krazyjakee/4ebf64c479d66fcb110cfc69debad6ff |
@nimahkh @krazyjakee you can find a multi stage Dockerfile on my repo. I used the zeit pkg in order to reduce the size of the final image. There are also deployment scripts for kubernetes if you want. |
I am having issues with this, but it's most likely due to my inexperience with docker and razzle.
I create the image with for example: I get the following warning (not sure if related to my issue):
And finally I run my container with for example: When I go to If I do a Is this the correct approach to dockerize a razzle app? Am I missing something to have it working as expected? Sorry if my question is a silly one, as I said I am a bit ignorant in all this and hopefully this can be useful for others in a similar situatiion. Thanks! |
I've tried |
you have to create a user and install it with new user , look at here please |
hello my friends.
so ,after finishing my codings , how can I have a good Dockerfile for razzle? I try many configs and many ways, but answer is "error".
can somebody please help me to find a good Dockerfile for razzle?
thank you
The text was updated successfully, but these errors were encountered: