This commit is contained in:
2026-02-23 16:40:06 +03:00
commit a51d12bc89
169 changed files with 7973 additions and 0 deletions

21
dashboard/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM ghcr.io/cirruslabs/flutter:stable AS build
WORKDIR /app
COPY pubspec.* ./
RUN flutter pub get
COPY . .
ARG API_BASE_URL
RUN mkdir -p assets && printf 'API_BASE_URL=%s\n' "${API_BASE_URL}" > assets/env
RUN flutter build web --release
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build/web /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]