File size: 803 Bytes
48ec4db
 
 
 
 
 
 
 
 
65d211a
48ec4db
f159eed
48ec4db
a7007e3
 
 
 
48ec4db
 
 
 
 
 
 
 
 
 
 
 
 
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
# syntax=docker/dockerfile:1
FROM python:3.12.10

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /app

# Copy and install Python requirements with no cache
COPY app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt

# Verify supervisor installation
RUN pip install supervisor && \
    which supervisord || { echo "supervisord not found"; exit 1; }

# download Qdrant binary
RUN wget https://github.com/qdrant/qdrant/releases/download/v1.11.5/qdrant-x86_64-unknown-linux-gnu.tar.gz \
    && tar -xzf qdrant-x86_64-unknown-linux-gnu.tar.gz \
    && mv qdrant /home/user/.local/bin/qdrant \
    && rm qdrant-x86_64-unknown-linux-gnu.tar.gz

COPY --chown=user . /app

EXPOSE 7860

RUN chmod +x start.sh

CMD ["./start.sh"]