2017-05-05 11:19:38 +00:00
|
|
|
FROM cloudron/base:0.10.0
|
|
|
|
MAINTAINER Syncthing Developers <support@cloudron.io>
|
|
|
|
|
2018-09-11 22:56:03 +00:00
|
|
|
ENV VERSION 0.14.50
|
2017-05-05 11:19:38 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /app/code \
|
|
|
|
&& wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - \
|
|
|
|
| tar -xz -C /app/code --strip-components=1
|
|
|
|
|
|
|
|
WORKDIR /app/code
|
|
|
|
|
2018-02-27 00:28:45 +00:00
|
|
|
# add supervisor configs
|
|
|
|
ADD supervisor/* /etc/supervisor/conf.d/
|
|
|
|
RUN ln -sf /run/syncthing/supervisord.log /var/log/supervisor/supervisord.log
|
|
|
|
|
|
|
|
ADD nginx.conf /app/code/nginx.conf
|
2017-05-05 11:19:38 +00:00
|
|
|
ADD start.sh /app/code/start.sh
|
|
|
|
|
|
|
|
CMD [ "/app/code/start.sh" ]
|