| FROM alpine | |
| RUN apk update && apk --no-cache add curl bash supervisor unzip | |
| WORKDIR /app | |
| RUN adduser -D -u 1000 user | |
| COPY --chown=user:user . . | |
| RUN curl -s https://i.jpillora.com/caddyserver/caddy | bash \ | |
| && curl -s https://i.jpillora.com/divyam234/teldrive | bash \ | |
| && curl -s https://i.jpillora.com/divyam234/rclone | bash \ | |
| && curl -s https://i.jpillora.com/divyam234/filebrowser | bash | |
| RUN chown -R user:user /app | |
| RUN chmod a+x db_backup.sh webdav.sh teldrive.sh filebrowser.sh | |
| USER user | |
| CMD ["supervisord", "-c", "/app/supervisord.conf"] |