DEV Community

Discussion on: Dockerizing React Apps

Collapse
 
karthikeyan676 profile image
Karthikeyan

I don't know how efficient the solution is? If I use S3 for react hosting means it's a serverless right? what if I used docker so, there will be a server running all the time. The server cost will be increased. Correct me if I'm wrong.

Collapse
 
bpaulino0 profile image
Bruno Paulino

You are absolutely correct. This technique only make sense if you have a server that is already running and is not taking up too much resources, so you can just "reuse" it.
I would definitely go with S3 as my first option, like I briefly mentioned on the first paragraph.
The server costs would depend on the server provider, but a S3 Bucket is a lot cheaper.