Download Dockerfile from Klein9/3mon: direct link, hf CLI and curl.
- Browser
- Download file 933 Bytes
-
https://huggingface.co/spaces/Klein9/3mon/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Klein9/3mon/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Klein9/3mon/resolve/main/Dockerfile
933 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 | |
| USER user | |
| CMD ["supervisord", "-c", "/app/supervisord.conf"] |