mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 07:45:10 +00:00
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:
parent
5c9dcb5c9f
commit
36d4fafa79
1 changed files with 10 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal 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
|
Loading…
Reference in a new issue