/
DockerfileCelery
32 lines (20 loc) · 798 Bytes
/
DockerfileCelery
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.9
WORKDIR /app
#RUN apt-get update && apt-get install --no-install-recommends -y git wget libpq-dev gcc python3-dev && pip install psycopg2
RUN pip install --upgrade pip
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Downloads the tools
RUN python superagi/tool_manager.py
# Set executable permissions for install_tool_dependencies.sh
RUN chmod +x install_tool_dependencies.sh
# Install dependencies
RUN ./install_tool_dependencies.sh
# Downloads the tools
RUN python superagi/tool_manager.py
# Set executable permissions for install_tool_dependencies.sh
RUN chmod +x install_tool_dependencies.sh
# Install dependencies
RUN ./install_tool_dependencies.sh
CMD ["celery", "-A", "superagi.worker", "worker", "--beat","--loglevel=info"]