Mdean77 commited on
Commit
6575453
·
1 Parent(s): 9631aa9
Files changed (2) hide show
  1. Dockerfile +3 -7
  2. entrypoint.sh +2 -1
Dockerfile CHANGED
@@ -5,18 +5,15 @@ RUN apt-get update && apt-get install -y \
5
  --no-install-recommends curl ca-certificates\
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
- # RUN curl -LsSf https://astral.sh/uv/install.sh | sh
9
  ADD https://astral.sh/uv/install.sh /uv-installer.sh
10
  RUN sh /uv-installer.sh && rm /uv-installer.sh
11
- ENV PATH="/root/.local/bin/:$PATH"
12
 
13
  # # Set te home directory and path
14
  ENV HOME=/home/user \
15
- PATH=/home/user/.local/bin:/root/.local/bin/:$PATH
16
 
17
 
18
- # ENV PATH=/root/.local/bin:$PATH
19
-
20
  # # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES
21
  ENV UVICORN_WS_PROTOCOL=websockets
22
 
@@ -28,9 +25,8 @@ COPY --chown=user . $HOME/app
28
  RUN chmod +x entrypoint.sh
29
  # # Install the dependencies
30
  RUN uv sync --frozen
31
- # # RUN uv sync
32
 
33
- # # Expose the port
34
  EXPOSE 7860 6333
35
  ENTRYPOINT ["./entrypoint.sh"]
36
 
 
5
  --no-install-recommends curl ca-certificates\
6
  && rm -rf /var/lib/apt/lists/*
7
 
 
8
  ADD https://astral.sh/uv/install.sh /uv-installer.sh
9
  RUN sh /uv-installer.sh && rm /uv-installer.sh
10
+ # ENV PATH="/root/.local/bin/:$PATH"
11
 
12
  # # Set te home directory and path
13
  ENV HOME=/home/user \
14
+ PATH="/home/user/.local/bin:/root/.local/bin/:$PATH"
15
 
16
 
 
 
17
  # # NEEDED FOR CHAINLIT IN HUGGING FACE SPACES
18
  ENV UVICORN_WS_PROTOCOL=websockets
19
 
 
25
  RUN chmod +x entrypoint.sh
26
  # # Install the dependencies
27
  RUN uv sync --frozen
 
28
 
29
+ # # Expose the ports
30
  EXPOSE 7860 6333
31
  ENTRYPOINT ["./entrypoint.sh"]
32
 
entrypoint.sh CHANGED
@@ -10,10 +10,11 @@ echo "Starting Qdrant server..."
10
  # sleep 1
11
  # done
12
  echo "Qdrant is ready!"
13
- echo PATH
14
  # chmod +x /root/.local/bin/uv
15
 
16
  # Start Chainlit application using Uvicorn
17
  echo "Starting Chainlit application..."
 
18
  uv run chainlit run app.py --host 0.0.0.0 --port 7860
19
 
 
10
  # sleep 1
11
  # done
12
  echo "Qdrant is ready!"
13
+
14
  # chmod +x /root/.local/bin/uv
15
 
16
  # Start Chainlit application using Uvicorn
17
  echo "Starting Chainlit application..."
18
+ ls -al /root/.local/bin/
19
  uv run chainlit run app.py --host 0.0.0.0 --port 7860
20