saucam commited on
Commit
e31691c
·
verified ·
1 Parent(s): 82c5e76

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -5,7 +5,12 @@ FROM node:20-bookworm-slim
5
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
6
 
7
  # Clone the leaderboard repository from GitHub
8
- RUN git clone https://github.com/highflame-ai/palisade-leaderboard.git /palisade-leaderboard
 
 
 
 
 
9
 
10
  # Use the existing 'node' user (UID 1000) that comes with the node image
11
  RUN chown -R node:node /palisade-leaderboard
 
5
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
6
 
7
  # Clone the leaderboard repository from GitHub
8
+ ARG GITHUB_TOKEN
9
+ RUN if [ -n "$GITHUB_TOKEN" ]; then \
10
+ git clone https://${GITHUB_TOKEN}@github.com/getjavelin/palisade-leaderboard.git /palisade-leaderboard; \
11
+ else \
12
+ git clone https://github.com/getjavelin/palisade-leaderboard.git /palisade-leaderboard; \
13
+ fi
14
 
15
  # Use the existing 'node' user (UID 1000) that comes with the node image
16
  RUN chown -R node:node /palisade-leaderboard