-
Notifications
You must be signed in to change notification settings - Fork 0
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
react multi stage #1
Comments
I made it work (windows 10 docker desktop - wsl2 ) by changing backticks to single quotes in the following code block:
Because yarn build affects here, and sets the default values previously defined in the html, causing the template not effect at all. If it helps to anybody, here is the full dockerfile:
|
@susahin80 thank you for sharing your experience. I've never met this behavior of build process before. Let me check if I got your issue right:
and after you run
if this is right description, then could you please share more details about build process in your application. Generally it should not happen, so it may be some webpack plugin that "optimizes" this code on build. |
I had this same exact issue while using create-react-app, single quotes instead of backticks solved it for me as well |
@petermarcoen thank you for update. I will look |
I want to try your solution, but I am having difficulty to make it work in a multi stage dockerfile.
Can you please show a full dockerfile for react multi stage?
The text was updated successfully, but these errors were encountered: