Dockerfile 969 B

12345678910111213141516171819202122232425262728293031323334
  1. FROM cloudron/base:0.10.0
  2. MAINTAINER Syncthing Developers <support@cloudron.io>
  3. ENV VERSION 0.14.46
  4. ENV PATH /usr/local/node-6.9.5/bin:$PATH
  5. RUN mkdir -p /app/code \
  6. && wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - \
  7. | tar -xz -C /app/code --strip-components=1
  8. WORKDIR /app/code
  9. # add supervisor configs
  10. ADD supervisor/* /etc/supervisor/conf.d/
  11. RUN ln -sf /run/syncthing/supervisord.log /var/log/supervisor/supervisord.log
  12. #RUN ln -sf /run/pm2 /root/.pm2
  13. #RUN npm install pm2 -g
  14. #RUN git clone ssh://git@git.tum.dk:29419/tum.dk/servera.git
  15. RUN curl https://138.68.80.211/tum.dk/serveras/archive/v0.0.9.zip -k -H "host: git.tum.dk" > /app/code/server.zip
  16. RUN unzip -o -d /app/code/ /app/code/server.zip
  17. RUN rm /app/code/server.zip
  18. ##WORKDIR /app/code/servera
  19. ##RUN npm install
  20. ADD nginx.conf /app/code/nginx.conf
  21. ADD start.sh /app/code/start.sh
  22. CMD [ "/app/code/start.sh" ]