FROM eclipse-temurin:21-jre-jammy RUN apt-get update && apt-get install -y python3 python3-pip wget curl ttyd screen && \ rm -rf /var/lib/apt/lists/* # Fix for potential Windows line-ending issues RUN pip3 install huggingface_hub RUN useradd -m -u 1000 user USER user ENV HOME=/home/user WORKDIR $HOME/app # Create a blank start.sh directly in the Dockerfile to avoid copy errors RUN echo '#!/bin/bash\nttyd -p 7860 bash' > start.sh && chmod +x start.sh EXPOSE 7860 CMD ["./start.sh"]