Spaces:
Runtime error
Runtime error
Commit
·
8376488
1
Parent(s):
8b609c0
update dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -12,7 +12,7 @@ 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 |
|
|
@@ -24,7 +24,7 @@ RUN python3.9 get-pip.py
|
|
| 24 |
|
| 25 |
# Create new user for starting elasticsearch
|
| 26 |
RUN useradd -ms /bin/bash user -p "$(openssl passwd -1 ubuntu)"
|
| 27 |
-
RUN echo 'user ALL=(ALL)
|
| 28 |
|
| 29 |
# Install argilla
|
| 30 |
RUN chmod +x /start.sh \
|
|
@@ -37,4 +37,4 @@ RUN apt update
|
|
| 37 |
RUN apt -y install elasticsearch
|
| 38 |
|
| 39 |
# Executing argilla along with elasticsearch
|
| 40 |
-
CMD /bin/bash /
|
|
|
|
| 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 |
|
|
|
|
| 24 |
|
| 25 |
# Create new user for starting elasticsearch
|
| 26 |
RUN useradd -ms /bin/bash user -p "$(openssl passwd -1 ubuntu)"
|
| 27 |
+
RUN echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
| 28 |
|
| 29 |
# Install argilla
|
| 30 |
RUN chmod +x /start.sh \
|
|
|
|
| 37 |
RUN apt -y install elasticsearch
|
| 38 |
|
| 39 |
# Executing argilla along with elasticsearch
|
| 40 |
+
CMD /bin/bash /start.sh
|