add ad services and Docker configuration for web app
Some checks failed
Build Android App / build (push) Has been cancelled

This commit is contained in:
ImBenji
2026-01-02 15:21:27 +00:00
parent 7a88585b6e
commit f1ce1c77a4
22 changed files with 608 additions and 19 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
# Stage 1: Build the Flutter web app
FROM ghcr.io/cirruslabs/flutter:stable AS build
WORKDIR /app
# Copy pubspec files and get dependencies
COPY pubspec.yaml pubspec.lock ./
RUN flutter pub get
# Copy the rest of the app
COPY . .
# Build web app
RUN flutter build web --release --web-renderer html
# Stage 2: Serve with nginx
FROM nginx:alpine
# Copy the built web app from build stage
COPY --from=build /app/build/web /usr/share/nginx/html
# Copy custom nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]