File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,9 @@ jobs:
139139 cache-from : type=gha
140140 cache-to : type=gha,mode=max
141141 platforms : linux/amd64,linux/arm64
142+ provenance : false
143+ sbom : false
144+ timeout-minutes : 60
142145
143146 - name : Run Trivy vulnerability scanner
144147 uses : aquasecurity/trivy-action@master
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ FROM python:3.12-alpine AS backend-builder
2323
2424WORKDIR /app/backend
2525
26- # Install build dependencies
27- RUN apk add --no-cache gcc musl-dev libffi-dev
26+ # Install build dependencies with retry logic for ARM64 compatibility
27+ RUN apk update && \
28+ apk add --no-cache gcc musl-dev libffi-dev || \
29+ (sleep 2 && apk update && apk add --no-cache gcc musl-dev libffi-dev)
2830
2931# Copy requirements
3032COPY backend/requirements.txt ./
@@ -41,7 +43,10 @@ LABEL version="1.0.0"
4143LABEL description="IP-HOP DDNS Management Application"
4244
4345# Install runtime dependencies only
44- RUN apk add --no-cache nodejs npm curl
46+ # Update APK repositories and install with retry logic for ARM64 compatibility
47+ RUN apk update && \
48+ apk add --no-cache nodejs npm curl || \
49+ (sleep 2 && apk update && apk add --no-cache nodejs npm curl)
4550
4651# Create non-root user
4752RUN addgroup -g 1000 iphop && \
You can’t perform that action at this time.
0 commit comments