Browse Source

update to base image 0.10.0

Johannes Zellner 8 năm trước cách đây
mục cha
commit
06bc3398ab
1 tập tin đã thay đổi với 10 bổ sung12 xóa
  1. 10 12
      Dockerfile

+ 10 - 12
Dockerfile

@@ -1,24 +1,22 @@
-FROM cloudron/base:0.9.0
+FROM cloudron/base:0.10.0
 MAINTAINER Johannes Zellner <johannes@cloudron.io>
 
-ENV PATH /usr/local/node-4.2.6/bin:$PATH
-
 RUN mkdir -p /app/code
 WORKDIR /app/code
+
+ENV PATH /usr/local/node-4.7.3/bin:$PATH
+
 RUN curl -L https://github.com/NodeBB/NodeBB/archive/v1.4.0.tar.gz | tar -xz --strip-components 1 -f -
 ADD config.json.template /app/code
 RUN npm install --production
 RUN npm install nodebb-plugin-emailer-local
-RUN mv /app/code/node_modules /app/code/node_modules_copy
-RUN ln -s /run/nodebb/node_modules /app/code/node_modules
-
-# these links will become valid after setup is run
-RUN mv /app/code/public /app/code/public_template && ln -sf /run/nodebb/public /app/code/public
-RUN rm -rf /app/code/logs && ln -sf /run/nodebb/logs /app/code/logs
-RUN ln -sF /run/nodebb/config.json /app/code/config.json
 
-# required for npm install to work at runtime (for nodebb plugins)
-RUN rm -rf /home/cloudron/.npm && ln -sf /run/nodebb/npm /home/cloudron/.npm
+RUN mv /app/code/node_modules /app/code/node_modules_copy && ln -s /run/nodebb/node_modules /app/code/node_modules && \
+	mv /app/code/public /app/code/public_template && ln -sf /run/nodebb/public /app/code/public && \
+	rm -rf /app/code/logs && ln -sf /run/nodebb/logs /app/code/logs && \
+	ln -sF /run/nodebb/config.json /app/code/config.json && \
+	# required for npm install to work at runtime (for nodebb plugins)
+	rm -rf /home/cloudron/.npm && ln -sf /run/nodebb/npm /home/cloudron/.npm
 
 ADD start.sh /app/code/start.sh