chrisjcc commited on
Commit
f7ced4c
·
verified ·
1 Parent(s): 175b1ad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -2,13 +2,14 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
5
  ARG GITHUB_TOKEN
6
 
7
- # Install system dependencies if needed
8
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
9
 
10
- # Install private package
11
- 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
12
 
13
  # Copy and install remaining requirements
14
  COPY requirements.txt .
@@ -16,7 +17,6 @@ RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  COPY . .
18
 
19
- # Gradio default port on HF Spaces
20
  EXPOSE 7860
21
 
22
- CMD ["python", "app_with_confluence.py"]
 
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 .
 
17
 
18
  COPY . .
19
 
 
20
  EXPOSE 7860
21
 
22
+ CMD ["python", "app.py"]