Spaces:
Runtime error
Runtime error
# Trying to put qdrant into same container as chainlit application | |
# Start with qdrant image | |
FROM qdrant/qdrant:latest | |
# Need curl and ca-certificates | |
RUN apt-get update && apt-get install -y \ | |
--no-install-recommends curl ca-certificates\ | |
&& rm -rf /var/lib/apt/lists/* | |
# Install uv | |
ADD https://astral.sh/uv/install.sh /uv-installer.sh | |
RUN sh /uv-installer.sh && rm /uv-installer.sh | |
# Set te home directory and path | |
ENV HOME=/home/user \ | |
PATH="/home/user/.local/bin:/root/.local/bin/:$PATH" | |
# # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES | |
ENV UVICORN_WS_PROTOCOL=websockets | |
# # Set the working directory | |
WORKDIR $HOME/app | |
# # Copy the app to the container | |
COPY --chown=user . $HOME/app | |
RUN chmod 777 entrypoint.sh | |
# # Install the dependencies | |
RUN uv sync --frozen | |
# # Expose the ports | |
EXPOSE 7860 6333 | |
ENTRYPOINT ["./entrypoint.sh"] | |