Spaces:
Runtime error
Runtime error
Minor adjustments
Browse files- Dockerfile +12 -5
- entrypoint.sh +2 -0
Dockerfile
CHANGED
@@ -8,23 +8,30 @@ RUN apt-get update && apt-get install -y \
|
|
8 |
--no-install-recommends curl ca-certificates\
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
|
|
|
|
11 |
# Install uv
|
12 |
ADD https://astral.sh/uv/install.sh /uv-installer.sh
|
13 |
RUN sh /uv-installer.sh && rm /uv-installer.sh
|
14 |
|
|
|
15 |
# Set te home directory and path
|
16 |
-
ENV HOME=/home/user \
|
17 |
-
|
|
|
|
|
|
|
18 |
|
19 |
# # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES
|
20 |
ENV UVICORN_WS_PROTOCOL=websockets
|
21 |
|
22 |
# # Set the working directory
|
23 |
-
WORKDIR $HOME/app
|
|
|
24 |
|
25 |
# # Copy the app to the container
|
26 |
-
COPY --chown=user . $HOME/app
|
27 |
-
|
28 |
RUN chmod 777 entrypoint.sh
|
29 |
# # Install the dependencies
|
30 |
RUN uv sync --frozen
|
|
|
8 |
--no-install-recommends curl ca-certificates\
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
+
|
12 |
+
|
13 |
# Install uv
|
14 |
ADD https://astral.sh/uv/install.sh /uv-installer.sh
|
15 |
RUN sh /uv-installer.sh && rm /uv-installer.sh
|
16 |
|
17 |
+
|
18 |
# Set te home directory and path
|
19 |
+
# ENV HOME=/home/user \
|
20 |
+
# PATH="/home/user/.local/bin:/root/.local/bin/:$PATH"
|
21 |
+
|
22 |
+
|
23 |
+
ENV PATH="/root/.local/bin:$PATH"
|
24 |
|
25 |
# # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES
|
26 |
ENV UVICORN_WS_PROTOCOL=websockets
|
27 |
|
28 |
# # Set the working directory
|
29 |
+
# WORKDIR $HOME/app
|
30 |
+
WORKDIR /app
|
31 |
|
32 |
# # Copy the app to the container
|
33 |
+
# COPY --chown=user . $HOME/app
|
34 |
+
COPY . /app
|
35 |
RUN chmod 777 entrypoint.sh
|
36 |
# # Install the dependencies
|
37 |
RUN uv sync --frozen
|
entrypoint.sh
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
#!/bin/bash
|
|
|
|
|
2 |
# Start Qdrant in the background
|
3 |
echo "Starting Qdrant server..."
|
4 |
/qdrant/qdrant &
|
|
|
1 |
#!/bin/bash
|
2 |
+
echo "Current directory: $(pwd)"
|
3 |
+
echo "Current path: $PATH"
|
4 |
# Start Qdrant in the background
|
5 |
echo "Starting Qdrant server..."
|
6 |
/qdrant/qdrant &
|