Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
machadovilaca committed Jan 24, 2021
1 parent a243772 commit 90a8660
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:15.6-alpine as build

WORKDIR /app

ENV PATH /app/node_modules/.bin:$PATH

COPY package.json ./
COPY package-lock.json ./

RUN npm install --silent
RUN npm install react-scripts@4.0.1 -g --silent

# add app
COPY ./public ./public
COPY ./src ./src

RUN npm run build

# production environment
FROM nginx:stable-alpine

COPY --from=build /app/build /usr/share/nginx/html

CMD ["nginx", "-g", "daemon off;"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

## 1. Getting Started

Project's source files are placed in ./src/ directory.
Project's source files are placed in ./src/ directory.

* ./src/theme/ - Settings used to build Material-UI theme.

* ./src/pages/ - All your pages (templates) are stored in separated .js files.

We use a create-react-app app format, and you can find more information here:
We use a create-react-app app format, and you can find more information here:
https://github.com/facebook/create-react-app

## 2. Installation

```
# Install dependencies
npm install
npm install
# Run dev server with live preview
npm run start
Expand All @@ -26,7 +26,7 @@ npm run build

## 3. Contact

If you have found any bugs in the Material-UI Builder, have any questions,
If you have found any bugs in the Material-UI Builder, have any questions,
comments or ideas for new features feel free to contact us:

support@shuffle.dev
support@shuffle.dev
10 changes: 5 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@ Material-UI Builder

1. Getting Started

Project's source files are placed in ./src/ directory.
Project's source files are placed in ./src/ directory.

* ./src/theme/ - Settings used to build Material-UI theme.

* ./src/pages/ - All your pages (templates) are stored in separated .js files.

We use a create-react-app app format, and you can find more information here:
We use a create-react-app app format, and you can find more information here:
https://github.com/facebook/create-react-app

2. Installation

# Install dependencies
npm install
npm install

# Run dev server with live preview
# Run dev server with live preview
npm run start

# Create an optimized production build
npm run build

3. Contact

If you have found any bugs in the Material-UI Builder, have any questions,
If you have found any bugs in the Material-UI Builder, have any questions,
comments or ideas for new features feel free to contact us:

support@shuffle.dev
Expand Down

0 comments on commit 90a8660

Please sign in to comment.