From 62ba0046544ea38fe74032bee666aaf1ba3dc0f1 Mon Sep 17 00:00:00 2001 From: RemRem Date: Thu, 16 Nov 2023 14:25:36 +0100 Subject: [PATCH] remake web ci --- .drone.yml | 18 +++++++++--------- Dockerfile | 12 ++++++++++-- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 03f52ea..7bf00f9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,15 +18,15 @@ steps: # - curl -F "file=@$sfm_apk" https://anonfiles.me/api/v1/upload > upload.json # - cat upload.json | cut -d '"' -f 12 - - name: build-web - image: ghcr.io/cirruslabs/flutter:3.13.9 - volumes: - - name: build - path: /tmp/smartfit_build - commands: - - flutter build web --web-renderer canvaskit - - cp -r ./build/web/* /tmp/smartfit_build - # - mountpoint /tmp/smartfit_build + # - name: build-web + # image: ghcr.io/cirruslabs/flutter:3.13.9 + # volumes: + # - name: build + # path: /tmp/smartfit_build + # commands: + # - flutter build web --web-renderer canvaskit + # - cp -r ./build/web/* /tmp/smartfit_build + # # - mountpoint /tmp/smartfit_build - name: build-web-image image: plugins/docker diff --git a/Dockerfile b/Dockerfile index 73d7a1a..ca2b9ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,10 @@ -FROM httpd:2.4 -COPY /build/ /usr/local/apache2/htdocs/ +FROM ghcr.io/cirruslabs/flutter:3.16.0 +RUN apt-get install php +RUN pwd +RUN ls + +COPY ./ ./ +WORKDIR ./ + +RUN flutter build web --renderer canvaskit +ENTRYPOINT php -S localhost:8080 -t ./build/web/