Dockerfile 568 B

12345678910111213141516171819
  1. FROM cloudron/base:0.10.0
  2. MAINTAINER Syncthing Developers <support@cloudron.io>
  3. ENV VERSION 0.14.46
  4. RUN mkdir -p /app/code \
  5. && wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - \
  6. | tar -xz -C /app/code --strip-components=1
  7. WORKDIR /app/code
  8. # add supervisor configs
  9. ADD supervisor/* /etc/supervisor/conf.d/
  10. RUN ln -sf /run/syncthing/supervisord.log /var/log/supervisor/supervisord.log
  11. ADD nginx.conf /app/code/nginx.conf
  12. ADD start.sh /app/code/start.sh
  13. CMD [ "/app/code/start.sh" ]