FROM docker.iske.dk/base-image:0.0.3 RUN mkdir -p /run/root && rm -rf /root && ln -sf /run/root /root 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 RUN ln -s /usr/local/node-10.15.1/bin/node /usr/bin/node #RUN npm install -g openpgp RUN npm install pm2 -g RUN npm install -g https://git.tum.dk/tum.dk/servera/archive/v0.0.27.tar.gz --unsafe-perm # 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 index.js /app/code/ COPY start.sh sync.sh dsync.sh /app/code/ RUN chmod +x /app/code/start.sh /app/code/sync.sh /app/code/dsync.sh CMD [ "/app/code/start.sh" ]