aamirtaymoor commited on
Commit
c88a7b3
·
verified ·
1 Parent(s): 80ec624

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -13,8 +13,11 @@ RUN pip install https://github.com/explosion/spacy-models/releases/download/en_c
13
  RUN git clone https://github.com/facebookresearch/fastText.git && cd fastText && pip install .
14
 
15
  COPY . .
16
- RUN chmod +x start.sh
 
 
 
 
17
  # CMD ["python", "kafka_consumer.py"]
18
  # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
19
- CMD ["./start.sh"]
20
 
 
13
  RUN git clone https://github.com/facebookresearch/fastText.git && cd fastText && pip install .
14
 
15
  COPY . .
16
+ COPY start.sh /code/start.sh
17
+ RUN chmod +x /code/start.sh
18
+
19
+ # Start both Kafka consumer and FastAPI app using the script
20
+ CMD ["/code/start.sh"]
21
  # CMD ["python", "kafka_consumer.py"]
22
  # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
23