File size: 710 Bytes
0dafcc8
2c80eb3
0dafcc8
2c80eb3
0dafcc8
 
 
 
2c80eb3
0dafcc8
2c80eb3
 
 
0dafcc8
 
 
 
2c80eb3
 
0dafcc8
 
2c80eb3
ee88fa0
142dd1a
0dafcc8
 
2c80eb3
0dafcc8
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
29
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"]