clash-linux commited on
Commit
c74f1eb
·
verified ·
1 Parent(s): 3e0f233

Upload 2 files

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -1,13 +1,6 @@
1
  FROM devld/go-drive
2
 
3
- # The go-drive application expects its data in /app/data.
4
- # In Hugging Face Spaces, persistent storage is at /data.
5
- # We use an entrypoint script to symlink /app/data to /data at runtime.
6
- # The base image runs as root, so we have the necessary permissions.
7
- USER root
8
-
9
- COPY entrypoint.sh /entrypoint.sh
10
- RUN chmod +x /entrypoint.sh
11
-
12
- ENTRYPOINT ["/entrypoint.sh"]
13
- CMD ["./go-drive"]
 
1
  FROM devld/go-drive
2
 
3
+ # The go-drive application's data directory is set to /data, which is a
4
+ # persistent volume in the Hugging Face Space, using the -data flag.
5
+ # The base image runs as a non-root user 'app', which has write access to /data.
6
+ CMD ["./go-drive", "-data", "/data"]