Spaces:
Runtime error
Runtime error
Download Dockerfile from mrfirdauss/consumer: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/spaces/mrfirdauss/consumer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mrfirdauss/consumer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mrfirdauss/consumer/resolve/main/Dockerfile
370 Bytes
| FROM python:3.11 | |
| COPY . . | |
| WORKDIR / | |
| RUN pip install --no-cache-dir --upgrade -r /requirements.txt | |
| ENV KAFKA_URL=$KAFKA_URL | |
| ENV KAFKA_API_KEY=$KAFKA_API_KEY | |
| ENV KAFKA_IP=$KAFKA_IP | |
| RUN echo "KAFKA_URL=$KAFKA_URL" | |
| ENV TRANSFORMERS_CACHE=/transformers_cache | |
| RUN mkdir -p /transformers_cache && chmod -R 777 /transformers_cache | |
| CMD ["python", "main.py"] |