17 lines
539 B
Docker
17 lines
539 B
Docker
FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263ea
|
|
|
|
RUN mkdir -p /app/code
|
|
WORKDIR /app/code
|
|
|
|
ARG VERSION=1.22.1
|
|
|
|
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
|
|
|
|
# add supervisor configs
|
|
ADD supervisor/* /etc/supervisor/conf.d/
|
|
RUN ln -sf /run/syncthing/supervisord.log /var/log/supervisor/supervisord.log
|
|
|
|
ADD nginx.conf start.sh /app/code/
|
|
|
|
CMD [ "/app/code/start.sh" ]
|