huiiz commited on
Commit
8cecbb0
·
1 Parent(s): 1048c06
Files changed (2) hide show
  1. Dockerfile +21 -5
  2. README.md +1 -1
Dockerfile CHANGED
@@ -1,5 +1,21 @@
1
- ARG aly_dav_refresh='eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI3ZjRlYjg5YTdiMDE0YTlkYWE3MmVhNGU2NTZmMTE0NCIsImF1ZCI6IjczZTYxMTgzMWE3YzRkODdhYzQ5Yzg0ODFiZjlmMmM0IiwiZXhwIjoxNzAwODc5MTI1LCJpYXQiOjE2OTMxMDMxMjUsImp0aSI6IjE3MzViMTYyNmYwNjRlZjE4NTU3YmJhNWIwMGZhNDQzIn0.LQ1MPahY5jbrD82gI1cfW1TY9htujFNyWQdf5pk5beHclNsgv-DbrUBlvbS1bBc-3c_YVu8Eu-v4_4O9MTTTzg'
2
- FROM messense/aliyundrive-webdav
3
- ENV REFRESH_TOKEN=$aly_dav_refresh
4
- ENV WEBDAV_AUTH_USER=admin
5
- ENV WEBDAV_AUTH_PASSWORD=admin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ARG aly_dav_refresh
2
+ FROM ubuntu:latest
3
+
4
+ RUN apt-get update && apt-get install -y \
5
+ python3 \
6
+ python3-pip \
7
+ python3-dev \
8
+ build-essential \
9
+ libssl-dev \
10
+ libffi-dev \
11
+ python3-setuptools \
12
+ python3-venv \
13
+ git \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ RUN pip3 install --upgrade pip
17
+
18
+ RUN pip3 install aliyundrive-webdav
19
+
20
+ # RUN aliyundrive-webdav -r $aly_dav_refresh -U admin -W admin
21
+ RUN aliyundrive-webdav -V
README.md CHANGED
@@ -6,7 +6,7 @@ colorTo: green
6
  sdk: docker
7
  pinned: false
8
  license: mit
9
- app_port: 8085
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
6
  sdk: docker
7
  pinned: false
8
  license: mit
9
+ app_port: 8080
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference