# 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"]