6 changed files with 177 additions and 8 deletions
@ -0,0 +1,8 @@ |
|||||||
|
.Person { |
||||||
|
width: 500px; |
||||||
|
margin: 16px auto; |
||||||
|
border: 1px solid #eee; |
||||||
|
box-shadow: 0 2px 3px #ccc; |
||||||
|
padding: 16px; |
||||||
|
text-align: center; |
||||||
|
} |
||||||
@ -0,0 +1,32 @@ |
|||||||
|
version: "3.7" |
||||||
|
services: |
||||||
|
|
||||||
|
react: |
||||||
|
container_name: react |
||||||
|
image: yutsuo/react |
||||||
|
build: |
||||||
|
context: . |
||||||
|
args: |
||||||
|
- HTTP_PROXY=http://192.168.128.1:3128 |
||||||
|
- HTTPS_PROXY=http://192.168.128.1:3128 |
||||||
|
- http_proxy=http://192.168.128.1:3128 |
||||||
|
- https_proxy=http://192.168.128.1:3128 |
||||||
|
environment: |
||||||
|
- HTTP_PROXY=http://192.168.128.1:3128 |
||||||
|
- HTTPS_PROXY=http://192.168.128.1:3128 |
||||||
|
- http_proxy=http://192.168.128.1:3128 |
||||||
|
- https_proxy=http://192.168.128.1:3128 |
||||||
|
volumes: |
||||||
|
- $PWD/src:/usr/src/app/src |
||||||
|
- $PWD/public:/usr/src/app/public |
||||||
|
ports: |
||||||
|
- "3000:3000" |
||||||
|
- "9229:9229" |
||||||
|
# command: ["echo",$PWD/src] |
||||||
|
command: ["npm", "start"] |
||||||
|
networks: |
||||||
|
default: |
||||||
|
ipam: |
||||||
|
driver: default |
||||||
|
config: |
||||||
|
- subnet: 172.17.0.0/24 |
||||||
@ -0,0 +1,31 @@ |
|||||||
|
{ |
||||||
|
"name": "udemy-react", |
||||||
|
"version": "0.1.0", |
||||||
|
"private": true, |
||||||
|
"dependencies": { |
||||||
|
"react": "^16.12.0", |
||||||
|
"react-dom": "^16.12.0", |
||||||
|
"react-scripts": "3.2.0" |
||||||
|
}, |
||||||
|
"scripts": { |
||||||
|
"start": "react-scripts start", |
||||||
|
"build": "react-scripts build", |
||||||
|
"test": "react-scripts test", |
||||||
|
"eject": "react-scripts eject" |
||||||
|
}, |
||||||
|
"eslintConfig": { |
||||||
|
"extends": "react-app" |
||||||
|
}, |
||||||
|
"browserslist": { |
||||||
|
"production": [ |
||||||
|
">0.2%", |
||||||
|
"not dead", |
||||||
|
"not op_mini all" |
||||||
|
], |
||||||
|
"development": [ |
||||||
|
"last 1 chrome version", |
||||||
|
"last 1 firefox version", |
||||||
|
"last 1 safari version" |
||||||
|
] |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue