File size: 933 Bytes
1b7b318 1de8723 b06c8f6 b0ae4ea 1de8723 1b7b318 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 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 --mount=type=secret,id=GIST_TELDRIVE,mode=0444,required=true \
# curl -s $(cat /run/secrets/GIST_TELDRIVE) -o /app/teldrive.env
#COPY .env /app/teldrive.env
#COPY rclone.conf /app/rclone.conf
RUN touch /app/rclone.conf
#RUN --mount=type=secret,id=GIST_RCLONE,mode=0444,required=true \
# curl -s $(cat /run/secrets/GIST_RCLONE) -o /app/rclone.conf
RUN chmod a+x db_backup.sh webdav.sh teldrive.sh filebrowser.sh
USER user
CMD ["supervisord", "-c", "/app/supervisord.conf"] |