Skip to content

Commit 458b586

Browse files
committed
Upgrade dependencies
1 parent ad6aa84 commit 458b586

File tree

17 files changed

+1013
-1146
lines changed

17 files changed

+1013
-1146
lines changed

Dockerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Install Operating system and dependencies
2+
FROM ubuntu:24.04 AS builder
3+
4+
RUN apt-get update
5+
RUN apt-get install -y curl git wget unzip gdb libstdc++6 libglu1-mesa fonts-droid-fallback python3 yq
6+
RUN apt-get clean
7+
8+
RUN mkdir /flutter_app/
9+
COPY . /flutter_app
10+
WORKDIR /flutter_app/app
11+
12+
# download Flutter SDK from Flutter Github repo
13+
RUN git clone https://github.com/flutter/flutter.git -b $(yq '.environment.flutter' /flutter_app/app/pubspec.yaml -r) /usr/local/flutter
14+
15+
# Set flutter environment path
16+
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"
17+
18+
# Run flutter doctor
19+
RUN flutter doctor
20+
21+
RUN flutter config --enable-web
22+
23+
# Copy files to container and build
24+
RUN flutter build web
25+
26+
# Nginx Container
27+
FROM nginx:alpine
28+
29+
EXPOSE 80
30+
31+
# Copy build/web in container to /app/
32+
COPY --from=builder /flutter_app/app/build/web /usr/share/nginx/html

0 commit comments

Comments
 (0)