Functioning music player features
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -7,11 +7,21 @@ RUN apt-get update && apt-get install -y \
|
||||
wget curl unzip git xz-utils zip libglu1-mesa openjdk-17-jdk\
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Become non-root
|
||||
ARG USERNAME=vscode
|
||||
ARG USER_UID=1000
|
||||
ARG USER_GID=1000
|
||||
|
||||
ENV FLUTTER_VERSION=3.41.8
|
||||
ENV FLUTTER_HOME=/opt/flutter
|
||||
RUN groupadd --gid $USER_GID $USERNAME \
|
||||
&& useradd --uid $USER_UID --gid $USER_GID -m -s /bin/bash $USERNAME
|
||||
|
||||
|
||||
# Install Flutter
|
||||
RUN git clone https://github.com/flutter/flutter.git /opt/flutter \
|
||||
&& cd /opt/flutter \
|
||||
&& git checkout $FLUTTER_VERSION \
|
||||
&& flutter precache --android
|
||||
RUN git clone https://github.com/flutter/flutter.git ${FLUTTER_HOME} \
|
||||
&& cd ${FLUTTER_HOME} \
|
||||
&& git checkout $FLUTTER_VERSION
|
||||
|
||||
# Set up Android SDK
|
||||
ENV ANDROID_HOME=/opt/android-sdk
|
||||
@@ -23,4 +33,7 @@ RUN mkdir -p ${ANDROID_HOME}/cmdline-tools \
|
||||
&& mv ${ANDROID_HOME}/cmdline-tools/cmdline-tools ${ANDROID_HOME}/cmdline-tools/latest \
|
||||
&& rm commandlinetools.zip && yes | sdkmanager --licenses \
|
||||
&& sdkmanager "platform-tools" "platforms;android-36" "build-tools;36.0.0"
|
||||
# && chown -R node:node ${ANDROID_HOME}
|
||||
RUN chown -R 1000:1000 ${ANDROID_HOME} && chown -R 1000:1000 ${FLUTTER_HOME}
|
||||
|
||||
USER $USERNAME
|
||||
ENV HOME=/home/$USERNAME
|
||||
Reference in New Issue
Block a user