deploy1 6 年之前
父節點
當前提交
8d7edef4b4
共有 2 個文件被更改,包括 22 次插入3 次删除
  1. 7 3
      Dockerfile
  2. 15 0
      package.json

+ 7 - 3
Dockerfile

@@ -49,8 +49,12 @@ RUN curl -L https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 -o
 
 ## the installations are kept separate since these change a lot compared to above
 # node
-RUN mkdir -p /usr/local/node-8.12.0 && \
-    curl -L https://nodejs.org/download/release/v8.12.0/node-v8.12.0-linux-x64.tar.gz  | tar zxf - --strip-components 1 -C /usr/local/node-8.12.0
+RUN mkdir -p /usr/local/node-10.15.1 && \
+    curl -L https://nodejs.org/download/release/v10.15.1/node-v10.15.1-linux-x64.tar.gz  | tar zxf - --strip-components 1 -C /usr/local/node-10.15.1
+
+#RUN mkdir -p /usr/local/node-8.12.0 && \
+#    curl -L https://nodejs.org/download/release/v8.12.0/node-v8.12.0-linux-x64.tar.gz  | tar zxf - --strip-components 1 -C /usr/local/node-8.12.0
+
 
 # Go
 ENV GOROOT /usr/local/go-1.11.1
@@ -58,7 +62,7 @@ RUN mkdir -p /usr/local/go-1.11.1 && \
     curl -L https://storage.googleapis.com/golang/go1.11.1.linux-amd64.tar.gz | tar zxf - -C /usr/local/go-1.11.1 --strip-components 1
 
 # Put node, go in the path by default
-ENV PATH /usr/local/node-8.12.0/bin:$GOROOT/bin:$PATH
+ENV PATH /usr/local/node-10.15.1/bin:$GOROOT/bin:$PATH
 
 # add a non-previleged user that apps can use
 # by default, account is created as inactive which prevents login via openssh

+ 15 - 0
package.json

@@ -0,0 +1,15 @@
+{
+  "name": "base-image",
+  "version": "0.0.1",
+  "description": "",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "repository": {
+    "type": "git",
+    "url": "ssh://git@git.tum.dk/tum.dk/base-image.git"
+  },
+  "author": "",
+  "license": "ISC"
+}