feat: add Dockerfile for nginx/web builds

- add Dockerfile for web builds
- helps with ansible deployments

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
TheOneWithTheBraid 2022-03-29 19:16:57 +02:00
parent 73b72a1cee
commit a40c2667e1

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