Browse Source

update deps and add dockerfile

iCrawl 1 year ago
parent
commit
8a75ab91a6
3 changed files with 1563 additions and 489 deletions
  1. 19 0
      Dockerfile
  2. 11 11
      package.json
  3. 1533 478
      yarn.lock

+ 19 - 0
Dockerfile

@@ -0,0 +1,19 @@
+FROM node:9
+
+LABEL name "lolisafe"
+LABEL version "3.0.0"
+LABEL maintainer "iCrawl <[email protected]>"
+
+WORKDIR /usr/src/lolisafe
+
+COPY package.json yarn.lock ./
+
+RUN sh -c 'echo "deb http://www.deb-multimedia.org jessie main" >> /etc/apt/sources.list' \
+&& apt-key adv --keyserver keyring.debian.org --recv-keys 5C808C2B65558117 \
+&& apt-get update \
+&& apt-get install -y ffmpeg graphicsmagick \
+&& yarn install
+
+COPY . .
+
+CMD ["node", "lolisafe.js"]

+ 11 - 11
package.json

@@ -16,21 +16,21 @@
   "license": "MIT",
   "dependencies": {
     "bcrypt": "^1.0.3",
-    "body-parser": "^1.16.0",
-    "express": "^4.14.0",
+    "body-parser": "^1.18.2",
+    "express": "^4.16.1",
     "express-handlebars": "^3.0.0",
-    "express-rate-limit": "^2.6.0",
-    "fluent-ffmpeg": "^2.1.0",
-    "gm": "^1.23.0",
-    "helmet": "^3.5.0",
-    "jszip": "^3.1.4",
-    "knex": "^0.12.6",
-    "multer": "^1.2.1",
+    "express-rate-limit": "^2.11.0",
+    "fluent-ffmpeg": "^2.1.2",
+    "gm": "^1.23.1",
+    "helmet": "^3.11.0",
+    "jszip": "^3.1.5",
+    "knex": "^0.14.4",
+    "multer": "^1.3.0",
     "randomstring": "^1.1.5",
-    "sqlite3": "^3.1.11"
+    "sqlite3": "^3.1.13"
   },
   "devDependencies": {
-    "eslint": "^4.4.1",
+    "eslint": "^4.18.1",
     "eslint-config-aqua": "^1.4.1"
   },
   "eslintConfig": {

File diff suppressed because it is too large
+ 1533 - 478
yarn.lock