dylankbaker commited on
Commit
8380e8f
·
verified ·
1 Parent(s): b017166

Update dockerfile to fix data write permissions error

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM heartexlabs/label-studio:hf-latest
2
 
3
  ################################################################################
 
1
+ # Temporarily switch to root to bypass HF permission boundaries
2
+ USER root
3
+
4
+ # Pre-create the target directory inside the volume path
5
+ RUN mkdir -p /data
6
+
7
+ # Open full read/write/execute permissions on the target directory
8
+ RUN chmod -R 777 /data
9
+
10
+ # Switch back to the required non-root Label Studio user context
11
+ USER 1001
12
+
13
  FROM heartexlabs/label-studio:hf-latest
14
 
15
  ################################################################################