Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update Dockerfile
Browse files- Dockerfile +9 -9
Dockerfile
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
FROM heartexlabs/label-studio:hf-latest
|
| 2 |
|
| 3 |
-
# Temporarily switch to root to bypass HF permission boundaries
|
| 4 |
-
USER root
|
| 5 |
|
| 6 |
-
# Pre-create the target directory inside the volume path
|
| 7 |
-
RUN mkdir -p /data
|
| 8 |
|
| 9 |
-
# Open full read/write/execute permissions on the target directory
|
| 10 |
-
RUN chmod -R 777 /data
|
| 11 |
|
| 12 |
-
# Switch back to the required non-root Label Studio user context
|
| 13 |
-
USER 1001
|
| 14 |
|
| 15 |
################################################################################
|
| 16 |
#
|
|
@@ -62,7 +62,7 @@ ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true
|
|
| 62 |
# By default, persistent storage is mounted to /data. In your Space settings,
|
| 63 |
# set the following variables:
|
| 64 |
#
|
| 65 |
-
ENV LABEL_STUDIO_BASE_DATA_DIR=/data
|
| 66 |
ENV STORAGE_PERSISTENCE=1
|
| 67 |
#
|
| 68 |
# Your space will restart. NOTE: if you have existing settings and data,
|
|
|
|
| 1 |
FROM heartexlabs/label-studio:hf-latest
|
| 2 |
|
| 3 |
+
# # Temporarily switch to root to bypass HF permission boundaries
|
| 4 |
+
# USER root
|
| 5 |
|
| 6 |
+
# # Pre-create the target directory inside the volume path
|
| 7 |
+
# RUN mkdir -p /data
|
| 8 |
|
| 9 |
+
# # Open full read/write/execute permissions on the target directory
|
| 10 |
+
# RUN chmod -R 777 /data
|
| 11 |
|
| 12 |
+
# # Switch back to the required non-root Label Studio user context
|
| 13 |
+
# USER 1001
|
| 14 |
|
| 15 |
################################################################################
|
| 16 |
#
|
|
|
|
| 62 |
# By default, persistent storage is mounted to /data. In your Space settings,
|
| 63 |
# set the following variables:
|
| 64 |
#
|
| 65 |
+
ENV LABEL_STUDIO_BASE_DATA_DIR=/data/label-studio
|
| 66 |
ENV STORAGE_PERSISTENCE=1
|
| 67 |
#
|
| 68 |
# Your space will restart. NOTE: if you have existing settings and data,
|