ghostdrive1's picture
Upload folder using huggingface_hub
86ba74e verified
Raw
History Blame Contribute Delete
416 Bytes
FROM python:3.10-slim
# Install Redis
RUN apt-get update && apt-get install -y redis-server && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
RUN pip install fastapi uvicorn websockets huggingface_hub schedule
COPY . .
# Set up Redis data directory
RUN mkdir -p /data
RUN sed -i 's/^dir .*/dir \/data/' /etc/redis/redis.conf
# Add start script
RUN chmod +x start.sh
CMD ["./start.sh"]