Spaces:
Running
Running
# 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"] | |