Spaces:
Paused
Paused
File size: 416 Bytes
86ba74e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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"]
|