18 lines
582 B
Docker
18 lines
582 B
Docker
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
|
|
|
ARG VERSION=1.4.2
|
|
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
|
|
|
|
# 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
|
|
ADD start.sh /app/code/start.sh
|
|
|
|
CMD [ "/app/code/start.sh" ]
|