From 7e4e1a902e5702370d477ada561aede0af714a77 Mon Sep 17 00:00:00 2001 From: sBubshait Date: Mon, 21 Jul 2025 14:55:01 +0300 Subject: [PATCH] feat: add a Dockerfile for the front end to serve web --- frontend/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 frontend/Dockerfile diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 0000000..2e63451 --- /dev/null +++ b/frontend/Dockerfile @@ -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;"] \ No newline at end of file