frimponge commited on
Commit
2e31623
·
verified ·
1 Parent(s): 6a5eb45

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -6
Dockerfile CHANGED
@@ -10,18 +10,21 @@ RUN apt-get update && apt-get install -y \
10
 
11
  WORKDIR /app
12
 
13
- # Generate SSH key (for testing/development)
14
  RUN ssh-keygen -t ed25519 -N "" -f /root/.ssh/id_ed25519 && \
15
- echo "Public key (add this to GitHub deploy keys!):" && \
16
- cat /root/.ssh/id_ed25519.pub
 
 
 
 
17
 
18
  # Add GitHub to known_hosts
19
  RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
20
 
21
- # Clone repo (this will fail until you manually add the public key to GitHub)
22
- RUN git clone --branch coolify --single-branch [email protected]:Fvt-second/Giftx_api.git /app || echo "Add the public key to GitHub to enable cloning"
23
 
24
- # Install dependencies (this will fail if clone didn't work)
25
  RUN pip install --upgrade pip
26
  RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt; fi
27
 
 
10
 
11
  WORKDIR /app
12
 
13
+ # Generate SSH Key and Show Public Key
14
  RUN ssh-keygen -t ed25519 -N "" -f /root/.ssh/id_ed25519 && \
15
+ echo "========================" && \
16
+ echo "ADD THIS PUBLIC KEY TO YOUR GITHUB REPO (DEPLOY KEYS):" && \
17
+ cat /root/.ssh/id_ed25519.pub && \
18
+ echo "========================" && \
19
+ echo "Waiting 120 seconds for manual key deployment..." && \
20
+ sleep 120
21
 
22
  # Add GitHub to known_hosts
23
  RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
24
 
25
+ # Clone repo (after you’ve added the deploy key)
26
+ RUN git clone --branch coolify --single-branch [email protected]:Fvt-second/Giftx_api.git /app
27
 
 
28
  RUN pip install --upgrade pip
29
  RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt; fi
30