Answer the question
In order to leave comments, you need to log in
How can I run a site with index.html on VPS, on docker + nginx?
Hello everyone, there is a site to which the API backing is attached, the back is installed on the server, you need to place the front there too, the site was on react, it was compiled, how can I configure it specifically for docker + nginx? It is not possible to run react through docker, an error occurs which is not on the local, and it is rather problematic to solve it
Answer the question
In order to leave comments, you need to log in
In short - to make a Docker image assembly, during which React is first assembled, placed in a folder (inside the image) and Nginx is launched to return static from it.
Here's an example.
Alternatively, you can animate CSS properties via transition
jsfiddle.net/varzin/9woqt7pn/1
What the hell "bears"? I was looking for a bear there, you deceived me, I will not help you.
Of course, I could be wrong, but css alone will not do here ... =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question