fluffychat/Dockerfile

17 lines
433 B
Docker
Raw Normal View History

2021-09-11 18:24:51 +02:00
# Based upon https://github.com/Starbix/dockerimages/commit/b0c3e408263a90ee467d30aed0e855a610eb537a
FROM cirrusci/flutter:stable AS builder
RUN mkdir /fluffychat
WORKDIR /fluffychat
COPY ./ /fluffychat
2021-09-11 19:01:11 +02:00
RUN ./scripts/prepare-web.sh
RUN ./scripts/build-web.sh
2021-09-11 18:24:51 +02:00
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