mnemo_cards/mnemo_cards_web_v2/Dockerfile
Dmitry 2eaa6a9067
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Mobile App CI / test (push) Waiting to run
Mobile App CI / build-android (push) Blocked by required conditions
Mobile App CI / build-ios (push) Blocked by required conditions
Web App CI / test (push) Waiting to run
Web App CI / build (push) Blocked by required conditions
Deploy Admin Panel / Deploy Admin Panel (push) Waiting to run
Deploy Admin Panel / Admin Panel Verification (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Deploy Telegram Bot / Deploy Telegram Bot (push) Waiting to run
dart
2025-12-11 03:38:08 +03:00

27 lines
709 B
Docker

# syntax=docker/dockerfile:1.7
# --- Build stage ------------------------------------------------------------
FROM ghcr.io/cirruslabs/flutter:3.27.4 AS build
WORKDIR /app
COPY pubspec.* ./
RUN flutter pub get
COPY . .
ENV API_BASE_URL=https://api.mnemo-cards.online
RUN flutter build web --release \
--dart-define=API_BASE_URL=${API_BASE_URL}
# --- Runtime stage ----------------------------------------------------------
FROM nginx:1.27-alpine AS runtime
WORKDIR /usr/share/nginx/html
COPY web.nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build/web/ ./
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD wget -qO- http://127.0.0.1/ >/dev/null 2>&1 || exit 1