Dockerfile 669 B

1234567891011121314151617181920212223242526
  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. ADD nginx.conf /app/code/nginx.conf
  15. ADD start.sh /app/code/start.sh
  16. CMD [ "/app/code/start.sh" ]