Possible fix to Docker build failed - #8

This commit is contained in:
unknown
2021-09-23 22:37:29 +02:00
parent c06a3ee97a
commit 7df5c8ddbe
5 changed files with 9 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ RUN npm run build
# Build client code # Build client code
RUN cd ./client \ RUN cd ./client \
&& npm install --production \ && npm install \
&& npm run build \ && npm run build \
&& cd .. \ && cd .. \
&& mv ./client/build/* ./public && mv ./client/build/* ./public

View File

@@ -17,7 +17,7 @@ RUN npm run build
# Build client code # Build client code
RUN cd ./client \ RUN cd ./client \
&& npm install --production \ && npm install \
&& npm run build \ && npm run build \
&& cd .. \ && cd .. \
&& mv ./client/build/* ./public && mv ./client/build/* ./public

View File

@@ -2363,8 +2363,7 @@
"@types/history": { "@types/history": {
"version": "4.7.9", "version": "4.7.9",
"resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.9.tgz", "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.9.tgz",
"integrity": "sha512-MUc6zSmU3tEVnkQ78q0peeEjKWPUADMlC/t++2bI8WnAG2tvYRPIgHG8lWkXwqc8MsUF6Z2MOf+Mh5sazOmhiQ==", "integrity": "sha512-MUc6zSmU3tEVnkQ78q0peeEjKWPUADMlC/t++2bI8WnAG2tvYRPIgHG8lWkXwqc8MsUF6Z2MOf+Mh5sazOmhiQ=="
"dev": true
}, },
"@types/html-minifier-terser": { "@types/html-minifier-terser": {
"version": "5.1.2", "version": "5.1.2",
@@ -2486,17 +2485,15 @@
"version": "5.1.16", "version": "5.1.16",
"resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.16.tgz", "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.16.tgz",
"integrity": "sha512-8d7nR/fNSqlTFGHti0R3F9WwIertOaaA1UEB8/jr5l5mDMOs4CidEgvvYMw4ivqrBK+vtVLxyTj2P+Pr/dtgzg==", "integrity": "sha512-8d7nR/fNSqlTFGHti0R3F9WwIertOaaA1UEB8/jr5l5mDMOs4CidEgvvYMw4ivqrBK+vtVLxyTj2P+Pr/dtgzg==",
"dev": true,
"requires": { "requires": {
"@types/history": "*", "@types/history": "*",
"@types/react": "*" "@types/react": "*"
} }
}, },
"@types/react-router-dom": { "@types/react-router-dom": {
"version": "5.1.9", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.1.9.tgz", "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.0.tgz",
"integrity": "sha512-Go0vxZSigXTyXx8xPkGiBrrc3YbBs82KE14WENMLS6TSUKcRFSmYVbL19zFOnNFqJhqrPqEs2h5eUpJhSRrwZw==", "integrity": "sha512-svUzpEpKDwK8nmfV2vpZNSsiijFNKY8+gUqGqvGGOVrXvX58k1JIJubZa5igkwacbq/0umphO5SsQn/BQsnKpw==",
"dev": true,
"requires": { "requires": {
"@types/history": "*", "@types/history": "*",
"@types/react": "*", "@types/react": "*",

View File

@@ -13,6 +13,7 @@
"@types/node": "^12.20.25", "@types/node": "^12.20.25",
"@types/react": "^17.0.21", "@types/react": "^17.0.21",
"@types/react-dom": "^17.0.9", "@types/react-dom": "^17.0.9",
"@types/react-router-dom": "^5.3.0",
"axios": "^0.21.4", "axios": "^0.21.4",
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"react": "^17.0.2", "react": "^17.0.2",
@@ -47,8 +48,6 @@
"last 1 safari version" "last 1 safari version"
] ]
}, },
"devDependencies": { "devDependencies": {},
"@types/react-router-dom": "^5.1.9"
},
"proxy": "http://localhost:5000" "proxy": "http://localhost:5000"
} }

View File

@@ -6,7 +6,7 @@
"scripts": { "scripts": {
"init:client": "npm install --prefix=client", "init:client": "npm install --prefix=client",
"init:server": "npm install", "init:server": "npm install",
"init": "npm-run-all -n init:**", "init": "npm i && cd client && npm i",
"dev:client": "npm start --prefix=client", "dev:client": "npm start --prefix=client",
"dev:server": "nodemon", "dev:server": "nodemon",
"dev": "npm-run-all -n --parallel dev:**", "dev": "npm-run-all -n --parallel dev:**",