Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +10 -6
Dockerfile
CHANGED
@@ -1,9 +1,13 @@
|
|
1 |
# Use the official Label Studio image as the base
|
2 |
FROM heartexlabs/label-studio:latest
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
1 |
# Use the official Label Studio image as the base
|
2 |
FROM heartexlabs/label-studio:latest
|
3 |
|
4 |
+
# Set the host to allow external connections, required for Hugging Face Spaces
|
5 |
+
ENV LABEL_STUDIO_HOST=0.0.0.0
|
6 |
+
|
7 |
+
# Set the project name. The entrypoint script of the base image will use
|
8 |
+
# this variable to correctly initialize the project in the writable /data directory.
|
9 |
+
# It will create a directory like /data/my_project_name
|
10 |
+
ENV LABEL_STUDIO_PROJECT_NAME=my_project
|
11 |
+
|
12 |
+
# We do not need to specify a CMD or ENTRYPOINT. The base image's entrypoint
|
13 |
+
# is designed to use the environment variables above to configure and launch the app.
|