mirror of
https://github.com/pawelmalak/snippet-box.git
synced 2025-12-21 13:23:05 +01:00
Possible fix to Docker build failed - #8
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
11
client/package-lock.json
generated
11
client/package-lock.json
generated
@@ -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": "*",
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:**",
|
||||||
|
|||||||
Reference in New Issue
Block a user