Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rodrigoramirez93/d3dd827c861146f5b696c739fc238f65 to your computer and use it in GitHub Desktop.
Save rodrigoramirez93/d3dd827c861146f5b696c739fc238f65 to your computer and use it in GitHub Desktop.
React default.conf dockerfile line replace
//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