Skip to content

Commit 90a8660

Browse files
committed
Add Dockerfile
1 parent a243772 commit 90a8660

File tree

3 files changed

+34
-10
lines changed

3 files changed

+34
-10
lines changed

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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;"]

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
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:
1212
https://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
2121
npm 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,
3030
comments or ideas for new features feel free to contact us:
3131

32-
support@shuffle.dev
32+
support@shuffle.dev

README.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ Material-UI Builder
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:
1212
https://github.com/facebook/create-react-app
1313

1414
2. 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
2020
npm run start
2121

2222
# Create an optimized production build
2323
npm run build
2424

2525
3. 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,
2828
comments or ideas for new features feel free to contact us:
2929

3030
support@shuffle.dev

0 commit comments

Comments
 (0)