Stage some builds in separate container to reduce overall image size.
This commit is contained in:
parent
23a2386cb8
commit
d794774cc9
4 changed files with 27 additions and 17 deletions
|
@ -1,20 +1,22 @@
|
|||
FROM debian:bookworm AS FLUTTER
|
||||
|
||||
RUN curl -sO https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.1-stable.tar.xz
|
||||
RUN tar -xf /flutter_linux_3.24.1-stable.tar.xz; rm /flutter*.xz
|
||||
|
||||
|
||||
FROM git.zontreck.com/ariascreations/buildenvironments:adk
|
||||
|
||||
WORKDIR /
|
||||
ENV PATH $PATH:/flutter/bin
|
||||
|
||||
RUN curl -sO https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.1-stable.tar.xz
|
||||
|
||||
RUN tar -xf /flutter_linux_3.24.1-stable.tar.xz; rm /flutter*.xz
|
||||
COPY --from=FLUTTER /flutter /flutter
|
||||
|
||||
RUN curl -sO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
|
||||
RUN dpkg -i google-chrome-stable_current_amd64.deb
|
||||
RUN dpkg -i google-chrome-stable_current_amd64.deb && rm google-chrome*.deb
|
||||
|
||||
RUN chown -R root:root /flutter
|
||||
|
||||
RUN /flutter/bin/flutter --disable-analytics
|
||||
|
||||
RUN /flutter/bin/flutter doctor
|
||||
|
||||
RUN /flutter/bin/flutter precache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue