File tree Expand file tree Collapse file tree 3 files changed +34
-10
lines changed
Expand file tree Collapse file tree 3 files changed +34
-10
lines changed Original file line number Diff line number Diff line change 1+ FROM node:15.6-alpine as build
2+
3+ WORKDIR /app
4+
5+ ENV PATH /app/node_modules/.bin:$PATH
6+
7+ COPY package.json ./
8+ COPY package-lock.json ./
9+
10+ RUN npm install --silent
11+ RUN npm install react-scripts@4.0.1 -g --silent
12+
13+ # add app
14+ COPY ./public ./public
15+ COPY ./src ./src
16+
17+ RUN npm run build
18+
19+ # production environment
20+ FROM nginx:stable-alpine
21+
22+ COPY --from=build /app/build /usr/share/nginx/html
23+
24+ CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change 22
33## 1. Getting Started
44
5- Project's source files are placed in ./src/ directory.
5+ Project's source files are placed in ./src/ directory.
66
77* ./src/theme/ - Settings used to build Material-UI theme.
88
99* ./src/pages/ - All your pages (templates) are stored in separated .js files.
1010
11- We use a create-react-app app format, and you can find more information here:
11+ We use a create-react-app app format, and you can find more information here:
1212https://github.com/facebook/create-react-app
1313
1414## 2. Installation
1515
1616```
1717# Install dependencies
18- npm install
18+ npm install
1919
2020# Run dev server with live preview
2121npm run start
@@ -26,7 +26,7 @@ npm run build
2626
2727## 3. Contact
2828
29- If you have found any bugs in the Material-UI Builder, have any questions,
29+ If you have found any bugs in the Material-UI Builder, have any questions,
3030comments or ideas for new features feel free to contact us:
3131
32- support@shuffle.dev
32+ support@shuffle.dev
Original file line number Diff line number Diff line change @@ -2,29 +2,29 @@ Material-UI Builder
22
331. Getting Started
44
5- Project's source files are placed in ./src/ directory.
5+ Project's source files are placed in ./src/ directory.
66
77* ./src/theme/ - Settings used to build Material-UI theme.
88
99* ./src/pages/ - All your pages (templates) are stored in separated .js files.
1010
11- We use a create-react-app app format, and you can find more information here:
11+ We use a create-react-app app format, and you can find more information here:
1212https://github.com/facebook/create-react-app
1313
14142. Installation
1515
1616# Install dependencies
17- npm install
17+ npm install
1818
19- # Run dev server with live preview
19+ # Run dev server with live preview
2020npm run start
2121
2222# Create an optimized production build
2323npm run build
2424
25253. Contact
2626
27- If you have found any bugs in the Material-UI Builder, have any questions,
27+ If you have found any bugs in the Material-UI Builder, have any questions,
2828comments or ideas for new features feel free to contact us:
2929
3030support@shuffle.dev
You can’t perform that action at this time.
0 commit comments