Selaa lähdekoodia

Fix cloudron packaging

Johannes Zellner 11 vuotta sitten
vanhempi
sitoutus
1c14df81ed
3 muutettua tiedostoa jossa 12 lisäystä ja 4 poistoa
  1. 1 1
      .dockerignore
  2. 2 2
      CloudronManifest.json
  3. 9 1
      Dockerfile

+ 1 - 1
.dockerignore

@@ -2,4 +2,4 @@
 .gitignore
 .gitignore
 .dockerignore
 .dockerignore
 node_modules
 node_modules
-
+bower_components

+ 2 - 2
CloudronManifest.json

@@ -8,12 +8,12 @@
   "healthCheckPath": "/",
   "healthCheckPath": "/",
   "httpPort": 3000,
   "httpPort": 3000,
   "addons": {
   "addons": {
-    "localstorage": {}
+    "mongodb": {}
   },
   },
   "minBoxVersion": "0.0.72",
   "minBoxVersion": "0.0.72",
   "targetBoxVersion": "0.0.72",
   "targetBoxVersion": "0.0.72",
   "manifestVersion": 1,
   "manifestVersion": 1,
-  "website": "",
+  "website": "http://nebulon.de",
   "contactEmail": "johannes@nebulon.de",
   "contactEmail": "johannes@nebulon.de",
   "icon": "",
   "icon": "",
   "mediaLinks": [ ]
   "mediaLinks": [ ]

+ 9 - 1
Dockerfile

@@ -6,4 +6,12 @@ EXPOSE 3000
 RUN mkdir -p /app/code
 RUN mkdir -p /app/code
 WORKDIR /app/code
 WORKDIR /app/code
 
 
-ADD bower.json package.json app.js src start.sh /app/code
+ADD bower.json package.json app.js src start.sh /app/code/
+
+ENV PATH /usr/local/node-4.2.1/bin:$PATH
+
+RUN npm install
+RUN npm install -g bower
+RUN bower install --allow-root
+
+CMD [ "/app/code/start.sh" ]