Merge branch 'braid/web-docker' into 'main'

feat: add Dockerfile for nginx/web builds

See merge request famedly/fluffychat!794
This commit is contained in:
Krille Fear 2022-03-30 09:54:53 +00:00
commit 9b79a23919
1 changed files with 10 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -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