rhoitjadhav commited on
Commit
6d02f80
·
1 Parent(s): f7a1118

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -38
Dockerfile CHANGED
@@ -1,39 +1,3 @@
1
- FROM ubuntu:20.04
2
 
3
- # Exposing ports
4
- EXPOSE 6900
5
-
6
- # Environment variables
7
- ENV ARGILLA_LOCAL_AUTH_USERS_DB_FILE=/packages/users.yml
8
- ENV UVICORN_PORT=6900
9
-
10
- # Copying argilla distribution files
11
- COPY *.whl /packages/
12
-
13
- # Copy users db file along with execution script
14
- COPY start.sh /
15
- COPY load_data.py /
16
- COPY users.yml /packages/
17
-
18
- # Install packages
19
- RUN apt update
20
- RUN apt -y install curl python3.9 python3.9-dev python3.9-distutils gcc gnupg apache2-utils sudo openssl systemctl
21
- RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
22
- RUN python3.9 get-pip.py
23
-
24
- # Create new user for starting elasticsearch
25
- RUN useradd -ms /bin/bash user -p "$(openssl passwd -1 ubuntu)"
26
- RUN echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
27
-
28
- # Install argilla
29
- RUN chmod +x /start.sh \
30
- && for wheel in /packages/*.whl; do pip install "$wheel"[server]; done
31
-
32
- # Install Elasticsearch
33
- RUN curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
34
- RUN echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-8.x.list
35
- RUN apt update
36
- RUN apt -y install elasticsearch=8.5.0
37
-
38
- # Executing argilla along with elasticsearch
39
- CMD /bin/bash /start.sh
 
1
+ FROM argilla/argilla-server:quickstart
2
 
3
+ CMD /bin/bash /start_quickstart_argilla.sh