Skip to content

Commit 738663f

Browse files
committed
hope to have a docker-compose file - issue done
1 parent 4d7b1c4 commit 738663f

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:16-alpine
2+
3+
WORKDIR /app
4+
5+
RUN apk update && apk add bash git mc
6+
7+
COPY package*.json ./
8+
9+
RUN npm i --legacy-peer-deps
10+
11+
COPY ENV.md .env
12+
13+
EXPOSE 3000

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ REACT_APP_BASE_URL=https://<your-backend-url.com>/api/
2525
standard from https://github.com/standard/eslint-config-standard
2626
\
2727
]
28+
29+
### Docker / docker-compose
30+
To run project please run the next commands after cloning repo:
31+
```
32+
docker-compose build
33+
docker-compose up
34+
```

docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '3'
2+
services:
3+
app:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
image: react-crm:v0
8+
volumes:
9+
- .:/app
10+
- /app/node_modules
11+
stdin_open: true
12+
tty: true
13+
ports:
14+
- 3000:3000
15+
command: npm start
16+
environment:
17+
- CHOKIDAR_USEPOLLING=true

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"dependencies": {
66
"@emotion/react": "^11.10.0",
77
"@emotion/styled": "^11.10.0",
8-
"@material-ui/icons": "^4.11.3",
9-
"@mui/icons-material": "^5.8.4",
10-
"@mui/material": "^5.10.0",
11-
"@mui/styles": "^5.9.3",
8+
"@material-ui/icons": "4.11.3",
9+
"@mui/icons-material": "5.8.4",
10+
"@mui/material": "5.10.0",
11+
"@mui/styles": "5.9.3",
1212
"@testing-library/jest-dom": "^5.16.5",
1313
"@testing-library/react": "^13.3.0",
1414
"@testing-library/user-event": "^14.4.3",

0 commit comments

Comments
 (0)