PetruZetta commited on
Commit
6bf6c69
·
verified ·
1 Parent(s): 5657a09

fix deploy start error

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -1
Dockerfile CHANGED
@@ -2,4 +2,23 @@ FROM heartexlabs/label-studio:hf-latest
2
 
3
  ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true
4
 
5
- ENV STORAGE_PERSISTENCE=1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true
4
 
5
+ ################################################################################
6
+ #
7
+ # How to Enable Persistent Storage for Label Studio in Hugging Face Spaces
8
+ # ------------------------------------------------------------------------
9
+ #
10
+ # By default this space stores all project configuration and data annotations
11
+ # in local storage with sqlite. If the space is reset, all configuration and
12
+ # annotation data in the space will be lost. You can enable configuration
13
+ # persistence through one of two methods:
14
+ #
15
+ # 1) Enabling Hugging Face Persistent Storage for saving project and annotation
16
+ # settings, as well as local task storage.
17
+ # 2) Connecting an external Postgres database for saving project and annotation
18
+ # settings, and cloud by connecting cloud storage for tasks.
19
+ #
20
+ ################################################################################
21
+
22
+ ENV STORAGE_PERSISTENCE=1
23
+
24
+ CMD exec label-studio --host=$SPACE_HOST