tinyballs / Dockerfile
Klein9's picture
Update Dockerfile
17f4d48 verified
Raw History Blame Contribute Delete
945 Bytes
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 config.toml
USER user
CMD ["supervisord", "-c", "/app/supervisord.conf"]