From c6faeb7a198297886c0a25ec74d79fd3c239cfb8 Mon Sep 17 00:00:00 2001 From: Felipe Andrade Date: Thu, 24 Oct 2024 01:13:57 -0300 Subject: [PATCH] Create Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ac0ec70 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ + +FROM fischerscode/flutter:stable AS build + +WORKDIR /app + +USER flutter + +COPY --chown=flutter:flutter . . + +RUN flutter pub get + +RUN flutter build web --release + +FROM nginx:latest + +COPY --from=build /app/build/web /usr/share/nginx/html