mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 03:45:12 +00:00
It seems jq is now required by the prepare-web.sh script, so add it in the builder image.
11 lines
384 B
Docker
11 lines
384 B
Docker
FROM ghcr.io/cirruslabs/flutter as builder
|
|
RUN sudo apt update && sudo apt install curl jq -y
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN ./scripts/prepare-web.sh
|
|
RUN flutter pub get
|
|
RUN flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --release --source-maps
|
|
|
|
FROM docker.io/nginx:alpine
|
|
RUN rm -rf /usr/share/nginx/html
|
|
COPY --from=builder /app/build/web /usr/share/nginx/html
|