kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Updated nodeJS version, packages
rodzic
b9b1225158
commit
3ab5a9a48f
|
@ -4,7 +4,7 @@ MAINTAINER Piero Toffanin <pt@masseranolabs.com>
|
|||
EXPOSE 3000
|
||||
|
||||
USER root
|
||||
RUN curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
|
||||
RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash -
|
||||
RUN apt-get install -y nodejs python-gdal libboost-dev libboost-program-options-dev git cmake
|
||||
RUN npm install -g nodemon
|
||||
|
||||
|
|
2
index.js
2
index.js
|
@ -465,7 +465,7 @@ app.get('/task/:uuid/download/:asset', authCheck, getTaskFromUuid, (req, res) =>
|
|||
if (filePath) {
|
||||
if (fs.existsSync(filePath)) {
|
||||
res.setHeader('Content-Disposition', `attachment; filename=${asset}`);
|
||||
res.setHeader('Content-Type', mime.lookup(filePath));
|
||||
res.setHeader('Content-Type', mime.getType(filePath));
|
||||
res.setHeader('Content-Length', fs.statSync(filePath).size);
|
||||
|
||||
const filestream = fs.createReadStream(filePath);
|
||||
|
|
22
package.json
22
package.json
|
@ -20,24 +20,24 @@
|
|||
},
|
||||
"homepage": "https://github.com/OpenDroneMap/NodeODM#readme",
|
||||
"dependencies": {
|
||||
"archiver": "^1.0.0",
|
||||
"archiver": "^3.0.0",
|
||||
"async": "^2.6.1",
|
||||
"aws-sdk": "^2.360.0",
|
||||
"aws-sdk": "^2.368.0",
|
||||
"body-parser": "^1.18.3",
|
||||
"express": "^4.16.3",
|
||||
"glob": "^7.1.1",
|
||||
"mime": "^1.3.4",
|
||||
"express": "^4.16.4",
|
||||
"glob": "^7.1.3",
|
||||
"mime": "^2.4.0",
|
||||
"minimist": "^1.2.0",
|
||||
"morgan": "^1.9.1",
|
||||
"multer": "^1.1.0",
|
||||
"multer": "^1.4.1",
|
||||
"mv": "^2.1.1",
|
||||
"node-schedule": "^1.1.1",
|
||||
"node-schedule": "^1.3.1",
|
||||
"node-unzip-2": "^0.2.7",
|
||||
"request": "^2.88.0",
|
||||
"rimraf": "^2.5.3",
|
||||
"swagger-jsdoc": "^1.3.1",
|
||||
"systeminformation": "^3.42.0",
|
||||
"tree-kill": "^1.1.0",
|
||||
"rimraf": "^2.6.2",
|
||||
"swagger-jsdoc": "^3.2.6",
|
||||
"systeminformation": "^3.51.3",
|
||||
"tree-kill": "^1.2.1",
|
||||
"uuid": "^3.3.2",
|
||||
"winston": "^2.2.0"
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue