File size: 841 Bytes
522638b 4e8edb9 522638b 7debeed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Use the upstream Label Studio image as base
FROM heartexlabs/label-studio:latest
# (Optional) set some default environment variables (these can be overridden at runtime)
ENV STORAGE_TYPE=local \
LOCAL_FILES_SERVING_ENABLED=true \
LOCAL_FILES_DOCUMENT_ROOT=/label-studio/data \
CORS_ALLOW_ALL_ORIGINS=true \
USE_ENFORCE_CSRF_CHECKS=false
# (Optional) you might want to add extra files, scripts, or configuration here
# e.g., copying custom config, startup scripts, etc.
# (Optional) set a default command or entrypoint (if the base image doesn’t already)
# But in this case, the upstream image likely already has the right ENTRYPOINT or CMD.
# Expose port (for documentation; runtime must still map it)
EXPOSE 7860
# The default command is inherited from the base image
CMD ["label-studio", "start", "--port", "7860"] |