FROM ghcr.io/ep9io/rustpipe:main ENV RUSTPIPE_LOG=DEBUG ENV RUSTPIPE_WORKSPACE_DIR=/workspace ENV RUSTPIPE_DATA_DIR=/data ENV PORT=7860 WORKDIR /workspace # Hugging Face Spaces runs as a non-root user (UID 1000). # The base image already creates a 'rustpipe' user with UID 1000, # but we ensure the workspace is writable by this user. USER root RUN chown -R 1000:1000 /workspace USER 1000 # clears the entrypoint from the base image ENTRYPOINT [] CMD rustpipe server --bind 0.0.0.0:7860