add nextcloud-client

This commit is contained in:
2019-11-24 11:53:03 +08:00
parent fa1f16a11f
commit 931c0486a7
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
FROM alpine:3.10
MAINTAINER Newnius <newnius.cn@gmail.com>
RUN apk add --no-cache nextcloud-client
CMD ["nextcloudcmd", "--help"]

View File

@@ -0,0 +1,14 @@
# Run Nextcloud Client in docker
## What is `Nextcloud`
```
docker run \
-it \
--rm \
--name nextcloud-client \
--mount type=bind,source=/path/to/file,target=/data \
newnius/nextcloud-client nextcloudcmd -u $USER -p $PASSWORD /data https://demo.nextcloud.com/remote.php/webdav/dir
```