Add Docker configuration and initial server setup for bus_running_record app

This commit is contained in:
ImBenji
2026-03-29 15:10:13 +01:00
parent 7049e58049
commit 2726d80551
8 changed files with 642 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# Build stage
FROM cirrusci/flutter:latest AS builder
WORKDIR /app
COPY pubspec.* ./
COPY lib ./lib
COPY web ./web
COPY assets ./assets
RUN flutter pub get
RUN flutter build web --release
# Serve stage
FROM nginx:alpine
COPY --from=builder /app/build/web /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]