rhoitjadhav commited on
Commit
7902181
·
1 Parent(s): 12ef33b

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.9-slim
2
 
3
  # Exposing ports
4
  EXPOSE 6900
@@ -12,13 +12,14 @@ COPY *.whl /packages/
12
 
13
  # Copy users db file along with execution script
14
  COPY start.sh /
15
- COPY start_test.sh /
16
  COPY load_data.py /
17
  COPY users.yml /packages/
18
 
19
  # Install packages
20
  RUN apt update
21
- RUN apt -y install python3.9-dev gcc gnupg apache2-utils systemctl curl sudo vim
 
 
22
 
23
  # Create new user for starting elasticsearch
24
  RUN useradd -ms /bin/bash user -p "$(openssl passwd -1 ubuntu)"
@@ -26,7 +27,7 @@ RUN echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
26
 
27
  # Install argilla
28
  RUN chmod +x /start.sh \
29
- && for wheel in /packages/*.whl; do pip3 install "$wheel"[server]; done
30
 
31
  # Install Elasticsearch
32
  RUN curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
@@ -35,4 +36,4 @@ RUN apt update
35
  RUN apt -y install elasticsearch=8.5.0
36
 
37
  # Executing argilla along with elasticsearch
38
- CMD /bin/bash /start_test.sh
 
1
+ FROM ubuntu:20.04
2
 
3
  # Exposing ports
4
  EXPOSE 6900
 
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)"
 
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 -
 
36
  RUN apt -y install elasticsearch=8.5.0
37
 
38
  # Executing argilla along with elasticsearch
39
+ CMD /bin/bash /start.sh