-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from roro89/features/cicd
containerization of react app
- Loading branch information
Showing
7 changed files
with
45 additions
and
634 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
FROM node:21-alpine | ||
|
||
WORKDIR /app | ||
COPY package*.json ./ | ||
|
||
COPY package*.json ./ | ||
RUN npm install | ||
|
||
COPY . . | ||
|
||
EXPOSE 5173 | ||
CMD ["npm", "run"] | ||
RUN npm run build | ||
|
||
EXPOSE 3000 | ||
ENV NODE_ENV=development | ||
|
||
CMD ["npm", "start"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import './index.css'; | ||
import App from './App'; | ||
import reportWebVitals from './reportWebVitals'; | ||
import { searchCompanies } from './api'; | ||
import { RouterProvider } from 'react-router-dom'; | ||
import { router } from './Routes/Routes'; | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import { RouterProvider } from "react-router-dom"; | ||
import "./index.css"; | ||
import App from "./App"; | ||
import reportWebVitals from "./reportWebVitals"; | ||
import { router } from "./Routes/Routes"; | ||
|
||
const root = ReactDOM.createRoot( | ||
document.getElementById('root') as HTMLElement | ||
document.getElementById("root") as HTMLElement | ||
); | ||
console.log(searchCompanies("tsla")); | ||
|
||
//console.log(searchCompanies("tsla")); | ||
root.render( | ||
<React.StrictMode> | ||
<RouterProvider router={router}/> | ||
<RouterProvider router={router} /> | ||
</React.StrictMode> | ||
); | ||
|
||
// If you want to start measuring performance in your app, pass a function | ||
// to log results (for example: reportWebVitals(console.log)) | ||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals | ||
reportWebVitals(); | ||
reportWebVitals(); |
Oops, something went wrong.