Spaces:
Runtime error
Runtime error
rhoitjadhav
commited on
Commit
·
a26575a
1
Parent(s):
145c92a
update dockerfile
Browse files- Dockerfile +2 -2
- start.sh +4 -3
Dockerfile
CHANGED
@@ -36,5 +36,5 @@ RUN chmod -R 777 /app
|
|
36 |
#RUN useradd -ms /bin/bash user -p "$(openssl passwd -1 ubuntu)"
|
37 |
|
38 |
# Executing argilla along with elasticsearch
|
39 |
-
|
40 |
-
CMD ["sudo", "/bin/bash", "-c", "/etc/init.d/elasticsearch start; sleep 15; uvicorn argilla:app --host '0.0.0.0'"]
|
|
|
36 |
#RUN useradd -ms /bin/bash user -p "$(openssl passwd -1 ubuntu)"
|
37 |
|
38 |
# Executing argilla along with elasticsearch
|
39 |
+
ENTRYPOINT "/app/start.sh"
|
40 |
+
#CMD ["sudo", "/bin/bash", "-c", "/etc/init.d/elasticsearch start; sleep 15; uvicorn argilla:app --host '0.0.0.0'"]
|
start.sh
CHANGED
@@ -2,7 +2,8 @@
|
|
2 |
|
3 |
set -e
|
4 |
|
|
|
5 |
# Starting elasticsearch & argilla
|
6 |
-
echo "Waiting for elasticsearch to start"
|
7 |
-
sleep 15
|
8 |
-
uvicorn argilla:app --host "0.0.0.0"
|
|
|
2 |
|
3 |
set -e
|
4 |
|
5 |
+
whoami
|
6 |
# Starting elasticsearch & argilla
|
7 |
+
#echo "Waiting for elasticsearch to start"
|
8 |
+
#sleep 15
|
9 |
+
#uvicorn argilla:app --host "0.0.0.0"
|