Skip to content

Commit

Permalink
updated front docker
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovNick committed Nov 11, 2024
1 parent 42eec7d commit 7ae9a97
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:ffi';

import 'package:clean_architecture/features/statistics/data/models/warning_statistics.dart';
import 'package:clean_architecture/features/statistics/domain/entities/warning_statistics_entity.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:ffi';

import 'package:clean_architecture/shared/domain/entities/percentage_entity.dart';
import 'package:clean_architecture/shared/domain/repositories/influxdb_repository.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:ffi';

import 'package:clean_architecture/shared/domain/repositories/influxdb_repository.dart';
import 'package:dartz/dartz.dart';
Expand Down
27 changes: 27 additions & 0 deletions frontend.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM debian:latest AS build-env

RUN apt-get update && \
apt-get install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 sed && \
apt-get clean

RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter

ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"

RUN flutter doctor

RUN flutter channel stable
RUN flutter upgrade
RUN flutter config --enable-web

WORKDIR /app
COPY ./flutter_front .
RUN flutter build web

FROM nginx:stable-alpine
COPY --from=build-env /app/build/web /usr/share/nginx/html

COPY nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 7ae9a97

Please sign in to comment.