mirror of https://github.com/dapr/quickstarts.git
Fix upstream issue in Create-React-App (#514)
* Fix upstream issue in Create-React-App Signed-off-by: Xavier Geerinck <xavier.geerinck@gmail.com> * Add distributed calculator fix for upstream plugin Signed-off-by: Xavier Geerinck <xavier.geerinck@gmail.com> * Editing wrong file Signed-off-by: Xavier Geerinck <xavier.geerinck@gmail.com> * Undo edits Signed-off-by: Xavier Geerinck <xavier.geerinck@gmail.com> * Make the build process a bit more clear Signed-off-by: Xavier Geerinck <xavier.geerinck@gmail.com>
This commit is contained in:
parent
54c775f22b
commit
26ae0d06cc
|
@ -2,7 +2,11 @@ FROM node:17-alpine
|
|||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
RUN npm install
|
||||
RUN npm run buildclient
|
||||
|
||||
# Build the client
|
||||
RUN cd client; npm i
|
||||
|
||||
EXPOSE 8080
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
"name": "client",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"react": "^16.9.0",
|
||||
"react-dom": "^16.9.0",
|
||||
"react-scripts": "^5.0.0"
|
||||
},
|
||||
"proxy": "http://localhost:8080/",
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
|
@ -14,6 +9,15 @@
|
|||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^16.9.0",
|
||||
"react-dom": "^16.9.0",
|
||||
"react-scripts": "^5.0.0",
|
||||
"mini-css-extract-plugin": "2.4.5"
|
||||
},
|
||||
"resolutions": {
|
||||
"mini-css-extract-plugin": "2.4.5"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "react-app"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue