Spaces:
Sleeping
Sleeping
File size: 745 Bytes
6526017 35833aa 6526017 613bc8a 35833aa 6526017 e4cd0ab 6526017 5154115 35833aa c88a7b3 35833aa eb33969 c88a7b3 ac6da23 47ac621 35833aa 007be26 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 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"]
|