Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
#
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
| 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 |
+
]
|