rhoitjadhav's picture
update dockerfile
ee88fa0
raw
history blame
710 Bytes
FROM docker.elastic.co/elasticsearch/elasticsearch:8.5.3
# Environment variable
ENV UVICORN_PORT=6900
ENV xpack.security.enabled=false
ENV cluster.routing.allocation.disk.threshold_enabled=false
ENV discovery.type=single-node
ENV ES_JAVA_OPTS=-'Xms512m -Xmx512m'
USER root
# Install packages
RUN apt update
RUN apt -y install curl python3.9 python3.9-dev python3.9-distutils gcc gnupg apache2-utils sudo openssl systemctl
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3.9 get-pip.py
RUN pip3 install datasets
COPY start.sh /
RUN chmod +x /start.sh
COPY *.whl /packages/
# Install argilla
RUN for wheel in /packages/*.whl; do pip install "$wheel"[server]; done
CMD ["/start.sh"]