feat: add a Dockerfile for the front end to serve web

This commit is contained in:
sBubshait 2025-07-21 14:55:01 +03:00
parent 969cbf1e8d
commit 7e4e1a902e

13
frontend/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM ghcr.io/cirruslabs/flutter:3.32.6 AS build
WORKDIR /app
COPY . .
RUN flutter pub get
RUN flutter build web --release
FROM nginx:alpine
COPY --from=build /app/build/web /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]