Spaces:
Runtime error
Runtime error
Commit
·
e13c2b7
1
Parent(s):
66545e2
update dockerfile
Browse files- Dockerfile +2 -2
- start.sh +1 -1
Dockerfile
CHANGED
@@ -12,7 +12,7 @@ ENV UVICORN_PORT=6900
|
|
12 |
|
13 |
# Install Python
|
14 |
RUN apt update
|
15 |
-
RUN apt -y install curl python3.9 python3.9-dev python3.9-distutils gcc gnupg apache2-utils sudo
|
16 |
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
17 |
RUN python3.9 get-pip.py
|
18 |
|
@@ -33,7 +33,7 @@ RUN chmod +x /app/start.sh
|
|
33 |
|
34 |
RUN chmod -R 777 /app
|
35 |
|
36 |
-
RUN useradd -ms /bin/bash user
|
37 |
|
38 |
# Executing argilla along with elasticsearch
|
39 |
ENTRYPOINT "/app/start.sh"
|
|
|
12 |
|
13 |
# Install Python
|
14 |
RUN apt update
|
15 |
+
RUN apt -y install curl python3.9 python3.9-dev python3.9-distutils gcc gnupg apache2-utils sudo openssl
|
16 |
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
17 |
RUN python3.9 get-pip.py
|
18 |
|
|
|
33 |
|
34 |
RUN chmod -R 777 /app
|
35 |
|
36 |
+
RUN useradd -ms /bin/bash user -p "$(openssl passwd -1 ubuntu)"
|
37 |
|
38 |
# Executing argilla along with elasticsearch
|
39 |
ENTRYPOINT "/app/start.sh"
|
start.sh
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
set -e
|
4 |
|
5 |
-
|
6 |
|
7 |
# Starting elasticsearch & argilla
|
8 |
service elasticsearch start
|
|
|
2 |
|
3 |
set -e
|
4 |
|
5 |
+
echo "ubuntu" | sudo -S su user
|
6 |
|
7 |
# Starting elasticsearch & argilla
|
8 |
service elasticsearch start
|