Created
March 24, 2022 03:23
-
-
Save rodrigoramirez93/d3dd827c861146f5b696c739fc238f65 to your computer and use it in GitHub Desktop.
React default.conf dockerfile line replace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Related: coderrocketfuel.com/article/fix-404-error-when-using-react-rouder-dom-and-nginx | |
FROM nginx:stable-alpine | |
COPY --from=build /app/build /usr/share/nginx/html | |
>>>>>>>RUN sed -i 's/index index.html index.htm/try_files $uri \/index.html/g' /etc/nginx/conf.d/default.conf | |
EXPOSE 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment