Spaces:
Runtime error
Runtime error
File size: 843 Bytes
d4d41c8 cf13325 d4d41c8 cf13325 d4d41c8 cf13325 d4d41c8 cf13325 d4d41c8 cf13325 d4d41c8 cf13325 d4d41c8 a633dec cf13325 be25e79 cf13325 |
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 30 31 32 33 34 |
FROM ubuntu:20.04
# Exposing ports
EXPOSE 6900
# Environment variables
ENV USERS_DB=/users.yml
ENV UVICORN_PORT=6900
# Install Python
RUN apt update
RUN apt -y install curl python3.9 python3.9-dev python3.9-distutils gcc gnupg
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3.9 get-pip.py
# Install argilla
RUN pip install argilla[server]
# Install Elasticsearch
RUN curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
RUN echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-7.x.list
RUN apt update
RUN apt -y install elasticsearch
# Copy users db file along with execution script
COPY users.yml /
COPY start.sh /
RUN chmod +x /start.sh
USER root
CMD service elasticsearch start; sleep 15; uvicorn argilla:app --host "0.0.0.0"
|