DLesmes commited on
Commit
cc218a5
·
verified ·
1 Parent(s): d8884b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Override the default command to provide a full, explicit configuration
5
- # that solves all previous issues.
6
- CMD ["label-studio", "start", "my_project", \
7
- "--no-browser", \
8
- "--host", "0.0.0.0", \
9
- "--data-dir", "/data/project-data"]
 
 
 
 
 
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.