File size: 635 Bytes
e53c2d7
741cefd
e53c2d7
741cefd
 
 
37f60ba
741cefd
18299c6
741cefd
 
 
e53c2d7
741cefd
 
 
 
 
582b1e1
741cefd
582b1e1
0754db9
b00d2cb
 
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
# 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 reqs
COPY app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt

# 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

RUN chmod +x start.sh

CMD ["./start.sh"]