deploy1 6 anos atrás
pai
commit
01f0083d43
2 arquivos alterados com 84 adições e 0 exclusões
  1. 53 0
      Dockerfile
  2. 31 0
      start.sh

+ 53 - 0
Dockerfile

@@ -0,0 +1,53 @@
+FROM docker.iske.dk/base
+
+RUN mkdir -p /app/code
+WORKDIR /app/code
+
+#RUN ln /
+
+RUN apt-get update -y 
+
+#RUN npm install -g hypercored
+#RUN npm install -g dat
+#RUN npm install -g pm2  
+
+#WORKDIR /app
+#RUN npm install https://git.tum.dk/tum.dk/aserver/archive/v0.0.4.tar.gz
+
+
+
+#COPY package.json /app/code/
+
+#RUN npm install
+
+#COPY index.js /app/code/
+#COPY views /app/code/views
+
+#RUN ln -s /app/code/node_modules /app/node_modules
+
+#RUN curl -L https://git.tum.dk/tum.dk/aserver/archive/v0.0.1.tar.gz | tar -vxz --strip-components 1 -f -
+
+#RUN npm install 
+
+
+# node_modules have to be in data to allow plugins to be installable at runtime
+#RUN cd /app/code/src && npm install && \
+#    ln -s /app/data/node_modules /app/code/node_modules
+
+# https://github.com/ether/etherpad-lite/issues/2683
+#RUN touch src/.ep_initialized
+
+#COPY settings.json.template /app/code/settings.json.template
+#RUN mv src/static/custom src/static/custom_templates && ln -s /app/data/custom src/static/custom
+
+# make these writable (var is used for cache)
+# node_modules contains plugins, the etherpad code is only linked into /app/data/node_modules
+#RUN ln -s /app/data/APIKEY.txt /app/code/APIKEY.txt && \
+#    ln -s /app/data/SESSIONKEY.txt /app/code/SESSIONKEY.txt && \
+#    rm -rf /app/code/var && ln -s /run/etherpad-lite/var /app/code/var && \
+#    rm -rf /home/cloudron/.npm && ln -s /tmp/.npm /home/cloudron/.npm && \
+#    rm -rf /root/.npm && ln -s /tmp/.npm /root/.npm
+
+COPY start.sh /app/code/
+
+CMD [ "/app/code/start.sh" ]

+ 31 - 0
start.sh

@@ -0,0 +1,31 @@
+#!/bin/bash
+
+echo "START"
+
+
+#if [[ ! -f /app/data/feeds ]]; then
+#	echo "dat://0b8c56d3dcf9e3eae168a883cc131e1e6a1780172ff3f53f0c60abcf4cac2436" > /app/data/feeds
+#fi
+
+cd /app/data
+
+ 
+ 
+ 
+
+
+
+ 
+#HTTTP  ALL 
+
+
+
+
+
+
+
+
+
+
+
+