Hassan Ali Khan commited on
Commit
28f12ef
·
1 Parent(s): 2cf1b06
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -8,9 +8,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
8
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
9
  ENV PATH="/root/.local/bin:${PATH}"
10
 
11
- # 👇 set uv cache dir and make sure it's writable
12
- ENV UV_CACHE_DIR=/tmp/uvcache
13
- RUN mkdir -p /tmp/uvcache && chmod -R 777 /tmp/uvcache
14
 
15
  WORKDIR /app
16
  COPY . .
@@ -19,5 +19,5 @@ RUN uv sync --frozen
19
 
20
  EXPOSE 7860
21
 
22
- # Hugging Face exposes port via $PORT, so respect that
23
  CMD ["uv", "run", "chainlit", "run", "src/study_chatbot/app.py", "--host", "0.0.0.0", "--port", "$PORT"]
 
8
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
9
  ENV PATH="/root/.local/bin:${PATH}"
10
 
11
+ # 👇 safer cache location inside the app folder
12
+ ENV UV_CACHE_DIR=/app/.uvcache
13
+ RUN mkdir -p /app/.uvcache && chmod -R 777 /app/.uvcache
14
 
15
  WORKDIR /app
16
  COPY . .
 
19
 
20
  EXPOSE 7860
21
 
22
+ # Respect Hugging Face's $PORT
23
  CMD ["uv", "run", "chainlit", "run", "src/study_chatbot/app.py", "--host", "0.0.0.0", "--port", "$PORT"]