build: Fix dockerfile to build web app

This commit is contained in:
krille-chan 2023-07-24 19:40:35 +02:00
parent 214338ce56
commit ee19b1f359
No known key found for this signature in database

View file

@ -3,7 +3,8 @@ RUN sudo apt update && sudo apt install curl -y
COPY . /app
WORKDIR /app
RUN ./scripts/prepare-web.sh
RUN ./scripts/build-web.sh
RUN flutter pub get
RUN flutter build web --release --source-maps
FROM docker.io/nginx:alpine
RUN rm -rf /usr/share/nginx/html