petter2025 commited on
Commit
dfa0b24
·
verified ·
1 Parent(s): 2cebfbb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -2,8 +2,9 @@ FROM python:3.12-slim
2
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
3
  WORKDIR /app
4
 
5
- ARG ARF_GITHUB_PAT
6
- RUN git config --global url."https://oauth2:${ARF_GITHUB_PAT}@github.com/".insteadOf "https://github.com/"
 
7
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
 
2
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
3
  WORKDIR /app
4
 
5
+ ARG HF_TOKEN_DOCKER_BUILD
6
+ ENV ARF_GITHUB_PAT=${HF_TOKEN_DOCKER_BUILD}
7
+ RUN git config --global url."https://x-access-token:${ARF_GITHUB_PAT}@github.com/".insteadOf "https://github.com/"
8
 
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt