Spaces:
Runtime error
Runtime error
File size: 950 Bytes
ca66c69 2edf2fb ca66c69 2edf2fb a52f107 2edf2fb 1f49ee0 2a03ddd a52f107 b3b82f6 2a03ddd b3b82f6 0658193 63b7090 2edf2fb 1f49ee0 3e770f8 b3b82f6 3e770f8 2edf2fb 5aa9680 2a03ddd 8c92d0d 2a03ddd 2edf2fb b3b82f6 1f49ee0 6575453 2edf2fb d69acf5 b3b82f6 |
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 32 33 34 35 36 37 38 39 |
# 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 - it installs in /root/.local/bin
ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && rm /uv-installer.sh
#do something
# Set the home directory and path, need access to uv
ENV HOME=/home/user \
PATH="/home/user/.local/bin:/root/.local/bin/:/home/user/:$PATH"
# # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES
ENV UVICORN_WS_PROTOCOL=websockets
# Set the working directory
WORKDIR $HOME/app
RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=$HOME/app sh
# # 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"]
|