Spaces:
Paused
Paused
Download examples/redis_space/Dockerfile from augment17/agentscope: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/augment17/agentscope/resolve/main/examples/redis_space/Dockerfile
- Command line
-
hf download hf://spaces/augment17/agentscope/examples/redis_space/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/augment17/agentscope/resolve/main/examples/redis_space/Dockerfile
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"] | |