Spaces:
Paused
Paused
Upload 2 files
Browse files- Dockerfile +4 -11
Dockerfile
CHANGED
|
@@ -1,13 +1,6 @@
|
|
| 1 |
FROM devld/go-drive
|
| 2 |
|
| 3 |
-
# The go-drive application
|
| 4 |
-
#
|
| 5 |
-
#
|
| 6 |
-
|
| 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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|