Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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
|
| 14 |
RUN ssh-keygen -t ed25519 -N "" -f /root/.ssh/id_ed25519 && \
|
| 15 |
-
echo "
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Add GitHub to known_hosts
|
| 19 |
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
|
| 20 |
|
| 21 |
-
# Clone repo (
|
| 22 |
-
RUN git clone --branch coolify --single-branch git@github.com:Fvt-second/Giftx_api.git /app
|
| 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 git@github.com: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 |
|