Spaces:
Runtime error
Runtime error
Update Dockerfile with cloud configuration
Browse files- Dockerfile +41 -0
Dockerfile
CHANGED
|
@@ -55,4 +55,45 @@ FROM heartexlabs/label-studio:hf-latest
|
|
| 55 |
#
|
| 56 |
################################################################################
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
CMD exec label-studio --host=$SPACE_HOST
|
|
|
|
| 55 |
#
|
| 56 |
################################################################################
|
| 57 |
|
| 58 |
+
################################################################################
|
| 59 |
+
#
|
| 60 |
+
# How to Enable Cloud Storage
|
| 61 |
+
# ---------------------------
|
| 62 |
+
# By default the only data storage enabled for this space is local. In the case
|
| 63 |
+
# of a space reset, all data will be lost. To enable permanent storage, you
|
| 64 |
+
# must enable a cloud storage connector. We also strongly recommend enabling
|
| 65 |
+
# configuration persistence to preserve project data, annotations, and user
|
| 66 |
+
# settings. Choose the appropriate cloud connector and configure the secrets
|
| 67 |
+
# for it.
|
| 68 |
+
#
|
| 69 |
+
# Amazon S3
|
| 70 |
+
# =========
|
| 71 |
+
# STORAGE_TYPE=s3
|
| 72 |
+
# STORAGE_AWS_ACCESS_KEY_ID="<YOUR_ACCESS_KEY_ID>"
|
| 73 |
+
# STORAGE_AWS_SECRET_ACCESS_KEY="<YOUR_SECRET_ACCESS_KEY>"
|
| 74 |
+
# STORAGE_AWS_BUCKET_NAME="<YOUR_BUCKET_NAME>"
|
| 75 |
+
# STORAGE_AWS_REGION_NAME="<YOUR_BUCKET_REGION>"
|
| 76 |
+
# STORAGE_AWS_FOLDER=""
|
| 77 |
+
#
|
| 78 |
+
# Google Cloud Storage
|
| 79 |
+
# ====================
|
| 80 |
+
#
|
| 81 |
+
# STORAGE_TYPE=gcs
|
| 82 |
+
# STORAGE_GCS_BUCKET_NAME="<YOUR_BUCKET_NAME>"
|
| 83 |
+
# STORAGE_GCS_PROJECT_ID="<YOUR_PROJECT_ID>"
|
| 84 |
+
# STORAGE_GCS_FOLDER=""
|
| 85 |
+
# GOOGLE_APPLICATION_CREDENTIALS="/opt/heartex/secrets/key.json"
|
| 86 |
+
#
|
| 87 |
+
# Azure Blob Storage
|
| 88 |
+
# ==================
|
| 89 |
+
#
|
| 90 |
+
# STORAGE_TYPE=azure
|
| 91 |
+
# STORAGE_AZURE_ACCOUNT_NAME="<YOUR_STORAGE_ACCOUNT>"
|
| 92 |
+
# STORAGE_AZURE_ACCOUNT_KEY="<YOUR_STORAGE_KEY>"
|
| 93 |
+
# STORAGE_AZURE_CONTAINER_NAME="<YOUR_CONTAINER_NAME>"
|
| 94 |
+
# STORAGE_AZURE_FOLDER=""
|
| 95 |
+
#
|
| 96 |
+
#
|
| 97 |
+
################################################################################
|
| 98 |
+
|
| 99 |
CMD exec label-studio --host=$SPACE_HOST
|