| | FROM python:3.12-slim as base |
| |
|
| | |
| | RUN apt-get update && apt-get install -y \ |
| | nginx \ |
| | curl \ |
| | && rm -rf /var/lib/apt/lists/* |
| |
|
| | |
| | RUN useradd -m -u 1000 user |
| |
|
| | |
| | ENV HOME=/home/user \ |
| | PATH=/home/user/.local/bin:$PATH |
| | WORKDIR $HOME/app |
| |
|
| | |
| | COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ |
| |
|
| | |
| | COPY --chown=user:user nginx.conf /etc/nginx/nginx.conf |
| |
|
| | |
| | COPY --chown=user:user . $HOME/app |
| |
|
| | |
| | COPY --chown=user:user pyproject.toml uv.lock ./ |
| | RUN uv sync --no-dev --frozen --no-cache |
| |
|
| | |
| | RUN curl -fsSL https://github.com/qdrant/qdrant/releases/latest/download/qdrant-linux-x86_64 -o /usr/local/bin/qdrant \ |
| | && chmod +x /usr/local/bin/qdrant |
| |
|
| | |
| | COPY --chown=user:user start_services.sh /usr/local/bin/start_services.sh |
| | RUN chmod +x /usr/local/bin/start_services.sh |
| |
|
| | |
| | EXPOSE 8080 6333 8000 8501 |
| |
|
| | |
| | USER user |
| |
|
| | |
| | ENTRYPOINT ["/usr/local/bin/start_services.sh"] |
| |
|