mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00

* fix: certificate error by using custom ssl certificate * Cd/docker linux ar (#1468) * cd: use docker buildx * cd: use linux host for linux arm instead of macos m1 m1 doesn't support nested virtualization. (Apple truly sucks) * cd: don't specify arch in Dockerfile * cd: use custom Dockerfile from ubuntu instead of flutter image * cd: add setup java for android * cd: add flutter distributor pre-built docker image for arm * cd: save me from this cursed arm build * cd: ?? * cd: ?? * cd: use docker build * fix: windows SSL Exception for Signing in * refactor: extract update checker as a basic function instead of a hook
23 lines
1.0 KiB
Docker
23 lines
1.0 KiB
Docker
FROM --platform=linux/arm64 ubuntu:22.04
|
|
|
|
ARG FLUTTER_VERSION
|
|
|
|
RUN apt-get clean &&\
|
|
apt-get update &&\
|
|
apt-get install -y bash curl file git unzip xz-utils zip libglu1-mesa cmake tar clang ninja-build pkg-config libgtk-3-dev make python3-pip python3-setuptools desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse libunwind-dev locate patchelf gir1.2-appindicator3-0.1 libappindicator3-1 libappindicator3-dev libsecret-1-0 libjsoncpp25 libsecret-1-dev libjsoncpp-dev libnotify-bin libnotify-dev mpv libmpv-dev rpm && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /home/flutter
|
|
|
|
RUN git clone https://github.com/flutter/flutter.git -b ${FLUTTER_VERSION} --single-branch flutter-sdk
|
|
|
|
RUN flutter-sdk/bin/flutter precache
|
|
|
|
RUN flutter-sdk/bin/flutter config --no-analytics
|
|
|
|
ENV PATH="$PATH:/home/flutter/flutter-sdk/bin"
|
|
ENV PATH="$PATH:/home/flutter/flutter-sdk/bin/cache/dart-sdk/bin"
|
|
ENV PATH="$PATH:/home/flutter/.pub-cache/bin"
|
|
ENV PUB_CACHE="/home/flutter/.pub-cache"
|
|
|
|
RUN dart pub global activate flutter_distributor |