Spaces:
Sleeping
Sleeping
Download Dockerfile from xkailashhh/postingbot: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/xkailashhh/postingbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xkailashhh/postingbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xkailashhh/postingbot/resolve/main/Dockerfile
464 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| build-essential \ | |
| curl \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY reqs.txt /app/ | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r reqs.txt | |
| COPY . /app | |
| RUN useradd -m botuser \ | |
| && chown -R botuser:botuser /app \ | |
| && chmod +x /app/start.sh | |
| USER botuser | |
| CMD ["./start.sh"] |