Gate Flutter app behind Telegram
Some checks failed
Build and deploy Flutter Web / build (push) Failing after 3m19s

This commit is contained in:
Ruslan Bakiev
2026-05-08 17:41:53 +07:00
parent 383e4d2307
commit 5b7b5771a1
7 changed files with 110 additions and 13 deletions

View File

@@ -2,12 +2,14 @@ FROM ghcr.io/cirruslabs/flutter:stable AS build
WORKDIR /app
ARG MAPBOX_ACCESS_TOKEN=""
ARG MAPBOX_STYLE="mapbox/streets-v12"
ARG TELEGRAM_BOT_URL="https://t.me/carfteebot"
COPY pubspec.* ./
RUN flutter pub get
COPY . .
RUN flutter build web --release \
--dart-define=MAPBOX_ACCESS_TOKEN="$MAPBOX_ACCESS_TOKEN" \
--dart-define=MAPBOX_STYLE="$MAPBOX_STYLE"
--dart-define=MAPBOX_STYLE="$MAPBOX_STYLE" \
--dart-define=TELEGRAM_BOT_URL="$TELEGRAM_BOT_URL"
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf