From a40c2667e1d798ee453be4e125d65840ffc15e28 Mon Sep 17 00:00:00 2001 From: TheOneWithTheBraid Date: Tue, 29 Mar 2022 19:16:57 +0200 Subject: [PATCH] feat: add Dockerfile for nginx/web builds - add Dockerfile for web builds - helps with ansible deployments Signed-off-by: TheOneWithTheBraid --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..269f8774 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM cirrusci/flutter as builder +RUN sudo apt update && sudo apt install curl -y +COPY . /app +WORKDIR /app +RUN ./scripts/prepare-web.sh +RUN ./scripts/build-web.sh + +FROM docker.io/nginx:alpine +RUN rm -rf /usr/share/nginx/html +COPY --from=builder /app/build/web /usr/share/nginx/html \ No newline at end of file