Add DNS routing setup for cloudflared tunnel in Dockerfile

This commit is contained in:
2025-08-15 14:23:29 +05:30
parent 458b2ca06f
commit e9553dd3af

View File

@@ -37,6 +37,9 @@ COPY cert.pem /etc/cloudflared/cert.pem
COPY credentials.json /etc/cloudflared/credentials.json
COPY config.json /etc/cloudflared/config.json
# Setup DNS routing for the tunnel (only needs to be done once)
RUN cloudflared tunnel route dns 5d2682ef-0b5b-47e5-b0fa-ad48968ce016 api.ishikabhoyar.tech || echo "DNS routing already set up or failed - continuing anyway"
# Copy the binary from builder
COPY --from=builder /app/monaco-backend /monaco-backend