DLesmes commited on
Commit
d027c97
·
verified ·
1 Parent(s): 0651f10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -9
Dockerfile CHANGED
@@ -1,13 +1,16 @@
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.
 
 
 
1
  # Use the official Label Studio image as the base
2
  FROM heartexlabs/label-studio:latest
3
 
4
+ # Bypass the base image's problematic entrypoint script.
5
+ # We set the entrypoint directly to the label-studio executable.
6
+ ENTRYPOINT ["label-studio"]
7
 
8
+ # Now we provide the arguments directly to the executable.
9
+ # This command cannot be ignored or overridden by any script.
10
+ CMD [ \
11
+ "start", \
12
+ "my_project", \
13
+ "--no-browser", \
14
+ "--host", "0.0.0.0", \
15
+ "--data-dir", "/data/label-studio-data" \
16
+ ]