mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +00:00
feat: Provide simple Dockerfile
This commit is contained in:
parent
d5f59d91c0
commit
5dc5df7b62
1 changed files with 16 additions and 0 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# Based upon https://github.com/Starbix/dockerimages/commit/b0c3e408263a90ee467d30aed0e855a610eb537a
|
||||||
|
|
||||||
|
FROM cirrusci/flutter:stable AS builder
|
||||||
|
|
||||||
|
RUN mkdir /fluffychat
|
||||||
|
WORKDIR /fluffychat
|
||||||
|
|
||||||
|
COPY ./ /fluffychat
|
||||||
|
RUN ./scripts/prepare-web.sh
|
||||||
|
|
||||||
|
RUN flutter build web --release
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
COPY --from=builder /fluffychat/build/web/ /usr/share/nginx/html
|
||||||
|
COPY --from=builder /fluffychat/config.sample.json /usr/share/nginx/html/config.json
|
Loading…
Reference in a new issue