Browse Source

docker nodejs

master
peter 2 years ago
parent
commit
76d5b0979f
3 changed files with 1 additions and 4 deletions
  1. 1
    1
      Dockerfile
  2. 0
    2
      src/backend/FrontblockLib.ts
  3. 0
    1
      src/backend/webpack.prod.js

+ 1
- 1
Dockerfile View File

@@ -1,5 +1,5 @@
1 1
 FROM alpine:3.9 
2
-RUN apk add npm git 
2
+RUN apk add npm git nodejs
3 3
 
4 4
 RUN git clone https://gitea.frontblock.me/fb-dist/admin.git dist
5 5
 

+ 0
- 2
src/backend/FrontblockLib.ts View File

@@ -92,14 +92,12 @@ window['fb'] = new FrontblockConfigLib()
92 92
 declare const fb:{Admin:any}
93 93
 window['setup'] = async() => {
94 94
     const i = await Promise.all([
95
-        fb.Admin.installPlugin("ApiClient"),
96 95
         fb.Admin.installPlugin("HtmlSupplier"),
97 96
         fb.Admin.installPlugin("PaymentManager"),
98 97
         fb.Admin.installPlugin("Wallet"),
99 98
     ])
100 99
     console.log(i)
101 100
     const s = await Promise.all([
102
-        fb.Admin.startPlugin("ApiClient"),
103 101
         fb.Admin.startPlugin("HtmlSupplier"),
104 102
         fb.Admin.startPlugin("PaymentManager"),
105 103
         fb.Admin.startPlugin("Wallet"),

+ 0
- 1
src/backend/webpack.prod.js View File

@@ -68,7 +68,6 @@ module.exports = [{
68 68
   },
69 69
 
70 70
   externals:{
71
-    knex: "../plugins/node_modules/knex",
72 71
     "./Installer": "./Installer"
73 72
   },
74 73
   optimization: {

Loading…
Cancel
Save