2020-05-05 08:51:50 +00:00
|
|
|
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
|
2017-05-05 11:19:38 +00:00
|
|
|
|
2020-09-08 11:14:21 +00:00
|
|
|
ARG VERSION=1.9.0
|
2017-05-05 11:19:38 +00:00
|
|
|
|
2020-05-05 08:51:50 +00:00
|
|
|
RUN mkdir -p /app/code
|
2017-05-05 11:19:38 +00:00
|
|
|
WORKDIR /app/code
|
|
|
|
|
2020-05-05 08:51:50 +00:00
|
|
|
RUN 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
|
|
|
|
|
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
|
|
|
|
|
2020-05-05 08:51:50 +00:00
|
|
|
ADD nginx.conf start.sh /app/code/
|
2017-05-05 11:19:38 +00:00
|
|
|
|
|
|
|
CMD [ "/app/code/start.sh" ]
|