Hassan Ali Khan commited on
Commit
7046c8b
·
1 Parent(s): 11ce71e
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,24 +1,21 @@
1
  FROM python:3.13-slim
2
 
3
- # Install curl and build tools
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  curl build-essential git \
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
  # Install uv
9
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
10
-
11
- # Add uv to PATH
12
  ENV PATH="/root/.local/bin:${PATH}"
13
 
 
 
 
14
  WORKDIR /app
15
  COPY . .
16
 
17
- # Install dependencies
18
  RUN uv sync --frozen
19
 
20
- # Expose Space default port
21
  EXPOSE 7860
22
 
23
- # Start Chainlit with uv (now on PATH)
24
  CMD ["uv", "run", "chainlit", "run", "src/study_chatbot/app.py", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.13-slim
2
 
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
  curl build-essential git \
5
  && rm -rf /var/lib/apt/lists/*
6
 
7
  # Install uv
8
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
 
 
9
  ENV PATH="/root/.local/bin:${PATH}"
10
 
11
+ # 👇 set uv cache to /tmp
12
+ ENV UV_CACHE_DIR=/tmp/.uvcache
13
+
14
  WORKDIR /app
15
  COPY . .
16
 
 
17
  RUN uv sync --frozen
18
 
 
19
  EXPOSE 7860
20
 
 
21
  CMD ["uv", "run", "chainlit", "run", "src/study_chatbot/app.py", "--host", "0.0.0.0", "--port", "7860"]