File size: 479 Bytes
0763aa2 a182a2c 6af754b a182a2c 0763aa2 a182a2c 0763aa2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Base image
FROM docker.elastic.co/elasticsearch/elasticsearch:8.6.2
# Install Python and dependencies
RUN apt-get update && apt-get install -y python3 python3-pip
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
# Copy configuration files
COPY elasticsearch.yml /usr/share/elasticsearch/config/
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] && /usr/local/bin/docker-entrypoint.sh elasticsearch |