Spaces:
Runtime error
Runtime error
Updates Dockerfile
Browse files- Dockerfile +5 -40
Dockerfile
CHANGED
|
@@ -10,7 +10,9 @@ FROM heartexlabs/label-studio:hf-latest
|
|
| 10 |
# access to your space to only authorized users. Uncomment the following line
|
| 11 |
# to disable public account creation for this space.
|
| 12 |
#
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
#
|
| 15 |
# Set secrets in your space to create an inital user, and log in with your
|
| 16 |
# provided username and password. Do not set these in your Dockerfile, as they
|
|
@@ -18,46 +20,9 @@ FROM heartexlabs/label-studio:hf-latest
|
|
| 18 |
#
|
| 19 |
# LABEL_STUDIO_USERNAME
|
| 20 |
# LABEL_STUDIO_PASSWORD
|
| 21 |
-
#
|
| 22 |
-
# You will need to provide new users with an invitation link to join the space.
|
| 23 |
-
#
|
| 24 |
-
################################################################################
|
| 25 |
|
| 26 |
-
#
|
| 27 |
-
#
|
| 28 |
-
# How to Enable Persistent Storage for Label Studio in Hugging Face Spaces
|
| 29 |
-
# ------------------------------------------------------------------------
|
| 30 |
-
#
|
| 31 |
-
# By default this space stores all project configuration and data annotations
|
| 32 |
-
# in local storage with sqlite. If the space is reset, all configuration and
|
| 33 |
-
# annotation data in the space will be lost. You can enable configuration
|
| 34 |
-
# persistence through one of two methods:
|
| 35 |
-
#
|
| 36 |
-
# 1) Enabling Hugging Face Persistent Storage for saving project and annotation
|
| 37 |
-
# settings, as well as local task storage.
|
| 38 |
-
# 2) Connecting an external Postgres database for saving project and annotation
|
| 39 |
-
# settings, and cloud by connecting cloud storage for tasks.
|
| 40 |
-
#
|
| 41 |
-
################################################################################
|
| 42 |
|
| 43 |
-
################################################################################
|
| 44 |
-
#
|
| 45 |
-
# How to Enable Hugging Face Persistent Storage for Label Studio
|
| 46 |
-
# --------------------------------------------------------------
|
| 47 |
-
#
|
| 48 |
-
# In the Hugging Face Label Studio Space settings, select the appropriate
|
| 49 |
-
# Persistent Storage tier. Note that Persistent Storage is a paid add-on.
|
| 50 |
-
# By default, persistent storage is mounted to /data. In your Space settings,
|
| 51 |
-
# set the following variables:
|
| 52 |
-
#
|
| 53 |
-
# LABEL_STUDIO_BASE_DATA_DIR=/data
|
| 54 |
-
# ENV STORAGE_PERSISTENCE=1
|
| 55 |
-
#
|
| 56 |
-
# Your space will restart. NOTE: if you have existing settings and data,
|
| 57 |
-
# they will be lost in this first restart. Data and setting will only be
|
| 58 |
-
# preserved on subsequent restarts of the space.
|
| 59 |
-
#
|
| 60 |
-
################################################################################
|
| 61 |
|
| 62 |
################################################################################
|
| 63 |
#
|
|
@@ -80,7 +45,7 @@ FROM heartexlabs/label-studio:hf-latest
|
|
| 80 |
# Uncomment the following line or set the following Space variable to remove
|
| 81 |
# the warning about ephemeral storage
|
| 82 |
#
|
| 83 |
-
|
| 84 |
#
|
| 85 |
# Note that you will need to connect cloud storage to host data items that you
|
| 86 |
# want to annotate, as local storage will not be preserved across a space reset.
|
|
|
|
| 10 |
# access to your space to only authorized users. Uncomment the following line
|
| 11 |
# to disable public account creation for this space.
|
| 12 |
#
|
| 13 |
+
ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true
|
| 14 |
+
ENV LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true
|
| 15 |
+
ENV LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=/label-studio/data/images
|
| 16 |
#
|
| 17 |
# Set secrets in your space to create an inital user, and log in with your
|
| 18 |
# provided username and password. Do not set these in your Dockerfile, as they
|
|
|
|
| 20 |
#
|
| 21 |
# LABEL_STUDIO_USERNAME
|
| 22 |
# LABEL_STUDIO_PASSWORD
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
# You will need to provide new users with an invitation link to join the space.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
################################################################################
|
| 28 |
#
|
|
|
|
| 45 |
# Uncomment the following line or set the following Space variable to remove
|
| 46 |
# the warning about ephemeral storage
|
| 47 |
#
|
| 48 |
+
ENV STORAGE_PERSISTENCE=1
|
| 49 |
#
|
| 50 |
# Note that you will need to connect cloud storage to host data items that you
|
| 51 |
# want to annotate, as local storage will not be preserved across a space reset.
|