Spaces:
Sleeping
Sleeping
rhoitjadhav
commited on
Commit
•
ba8a61d
1
Parent(s):
3714a38
using quickstart latest docker image
Browse files- Dockerfile +2 -37
Dockerfile
CHANGED
@@ -1,38 +1,3 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
4 |
-
RUN cd /etc/yum.repos.d/
|
5 |
-
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
|
6 |
-
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
|
7 |
-
RUN yum install -y python39 python39-pip wget
|
8 |
-
|
9 |
-
# Copy setup files
|
10 |
-
COPY ./requirements.txt requirements.txt
|
11 |
-
COPY ./start.sh start.sh
|
12 |
-
RUN chown elasticsearch:elasticsearch requirements.txt
|
13 |
-
RUN chown elasticsearch:elasticsearch start.sh
|
14 |
-
|
15 |
-
# Change the user to the default user for the elasticsearch image
|
16 |
-
USER elasticsearch
|
17 |
-
|
18 |
-
# API KEY and password
|
19 |
-
RUN --mount=type=secret,id=API_KEY,mode=0444,required=false
|
20 |
-
ARG API_KEY=$(cat /run/secrets/API_KEY)
|
21 |
-
|
22 |
-
RUN --mount=type=secret,id=PASSWORD,mode=0444,required=false
|
23 |
-
ARG PASSWORD=$(cat /run/secrets/PASSWORD)
|
24 |
-
|
25 |
-
# Install Python deps
|
26 |
-
RUN pip3 install -U -r requirements.txt
|
27 |
-
|
28 |
-
RUN wget https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh
|
29 |
-
|
30 |
-
# Make scripts executable
|
31 |
-
RUN chmod +x wait-for-it.sh
|
32 |
-
RUN chmod +x start.sh
|
33 |
-
|
34 |
-
# Expose the application's port
|
35 |
-
EXPOSE 6900
|
36 |
-
|
37 |
-
# Set the command to run the shell script
|
38 |
-
CMD ["./start.sh"]
|
|
|
1 |
+
FROM argilla/argilla-quickstart:latest
|
2 |
|
3 |
+
CMD whoami && /start_quickstart_argilla.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|