File size: 734 Bytes
36cb60d
be3cb04
 
 
 
 
 
 
 
a8d5ced
 
36cb60d
be3cb04
 
 
 
 
 
 
 
 
 
36cb60d
be3cb04
583face
36cb60d
583face
be3cb04
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
# ALTYZEN AI Agent Worker

FROM python:3.11-slim

ENV DEBIAN_FRONTEND=noninteractive
ENV DISPLAY=:99

WORKDIR /app

COPY setup_stealth.sh /tmp/setup_stealth.sh
RUN chmod +x /tmp/setup_stealth.sh && bash /tmp/setup_stealth.sh && rm /tmp/setup_stealth.sh

COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
    pip install --no-cache-dir -r requirements.txt

RUN playwright install chromium --with-deps

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY app.py .
COPY agent.py .

EXPOSE 8888

HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
    CMD curl -f http://localhost:8888/ || exit 1

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]