chrisjcc commited on
Commit
8c9db16
·
verified ·
1 Parent(s): 42fe909

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -11
Dockerfile CHANGED
@@ -3,16 +3,23 @@ FROM python:3.10-slim
3
  WORKDIR /app
4
 
5
  # Install system dependencies
6
- RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
 
 
 
7
 
8
- # Upgrade pip
9
- RUN pip install --upgrade pip
 
 
10
 
11
- # Copy requirements first (best practice for caching)
12
- COPY requirements.txt .
 
 
13
 
14
- # Copy the rest of the app
15
- COPY . .
16
 
17
  # -----------------------------
18
  # Install private GitHub confluence-ingestor wheel using BuildKit secret
@@ -46,10 +53,9 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
46
  && rm -f /tmp/${WHEEL_NAME} \
47
  && echo "✅ Installed ${WHEEL_NAME}"
48
 
49
-
50
- # Install other dependencies
51
- RUN pip install --no-cache-dir -r requirements.txt
52
-
53
  EXPOSE 7860
54
 
 
 
 
55
  CMD ["python", "app_with_confluence.py"]
 
3
  WORKDIR /app
4
 
5
  # Install system dependencies
6
+ RUN apt-get update --allow-releaseinfo-change \
7
+ && apt-get install -y --no-install-recommends \
8
+ curl unzip git jq \
9
+ && rm -rf /var/lib/apt/lists/*
10
 
11
+ # -----------------------------
12
+ # Copy ALL application code first
13
+ # -----------------------------
14
+ COPY . .
15
 
16
+ # -----------------------------
17
+ # Update pip
18
+ # -----------------------------
19
+ RUN pip install --upgrade pip
20
 
21
+ # Install other dependencies
22
+ RUN pip install --no-cache-dir -r requirements.txt
23
 
24
  # -----------------------------
25
  # Install private GitHub confluence-ingestor wheel using BuildKit secret
 
53
  && rm -f /tmp/${WHEEL_NAME} \
54
  && echo "✅ Installed ${WHEEL_NAME}"
55
 
 
 
 
 
56
  EXPOSE 7860
57
 
58
+ # -----------------------------
59
+ # Entrypoint
60
+ # -----------------------------
61
  CMD ["python", "app_with_confluence.py"]