chrisjcc commited on
Commit
34d36dd
·
verified ·
1 Parent(s): 3846331

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -2,19 +2,22 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Declare the build argument
6
- ARG GITHUB_TOKEN
7
-
8
  # Install system dependencies
9
- RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
 
 
 
10
 
11
- # Install private package using the build arg
12
- RUN pip install "https://${GITHUB_TOKEN}:x-oauth-basic@github.com/chrisjcc/confluence-ingestor/releases/download/v0.0.1/confluence_ingestor-0.3.0-py3-none-any.whl"
 
 
13
 
14
- # Copy and install remaining requirements
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
 
18
  COPY . .
19
 
20
  EXPOSE 7860
 
2
 
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
+ # Install private package using environment variable
12
+ # The environment variable GITHUB_TOKEN should be set in the Hugging Face Space
13
+ RUN pip install --no-cache-dir \
14
+ "https://${GITHUB_TOKEN}:x-oauth-basic@github.com/chrisjcc/confluence-ingestor/releases/download/v0.0.1/confluence_ingestor-0.3.0-py3-none-any.whl"
15
 
16
+ # Copy requirements and install
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
+ # Copy the rest of the app
21
  COPY . .
22
 
23
  EXPOSE 7860