Spaces:
Sleeping
Sleeping
| FROM python:3.8 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install "uvicorn[standard]" | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| RUN pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.4.1/en_core_web_sm-3.4.1.tar.gz | |
| RUN git clone https://github.com/facebookresearch/fastText.git && cd fastText && pip install . | |
| COPY . . | |
| # COPY start.sh /code/start.sh | |
| # RUN chmod +x /code/start.sh | |
| # EXPOSE 8000 | |
| # Start both Kafka consumer and FastAPI app using the script | |
| # CMD ["/code/start.sh"] | |
| # CMD ["python", "kafka_consumer.py"] | |
| # CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |