Browse Source

1.0.6-flutter

liuyuqi-dellpc 1 year ago
parent
commit
40f20e887e
1 changed files with 29 additions and 24 deletions
  1. 29 24
      flutter/.ide/Dockerfile-Allinone-flutter

+ 29 - 24
flutter/.ide/Dockerfile-Allinone-flutter

@@ -4,11 +4,12 @@ ENV MAVEN_VERSION=3.9.5 \
     GRADLE_VERSION=7.5
 ARG FLUTTER_VERSION="3.13.5"
 
+# apt change to aliyun
 RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
 RUN sed -i s@/security.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
 
 RUN apt-get update && apt-get install -y \
-    curl unzip wget git vim
+    curl zip unzip wget git vim
 
 RUN apt install build-essential -y
 
@@ -55,40 +56,45 @@ RUN git clone --branch ${FLUTTER_VERSION} https://github.com/flutter/flutter.git
     && ./bin/flutter precache \
     && ./bin/flutter doctor
 
-# install python 3.10
+# install python 3.12.1
 RUN mkdir -p ~/.pip
 RUN echo '\n\
     [global] \n\
     trusted-host=mirrors.aliyun.com \n\
     index-url=https://mirrors.aliyun.com/pypi/simple/ \n\
     ' > ~/.pip/pip.conf
-# RUN apt-get update && apt-get install -y \
-#     software-properties-common
 
+# RUN apt-get install -y software-properties-common
 # RUN add-apt-repository -y ppa:deadsnakes/ppa
-# RUN apt-get update && \
-#     apt-get install -y python3.10 python3.10-distutils
-
-RUN apt update && apt install -y python3-distutils
-
-RUN curl http://fileshare.yoqi.me/d/DevFiles/Develop/Python/get-pip.py?sign=17C5fjx9l5VpBJ6FCHonje5nEEkylSINsPlKsASVkRc=:1702263152 -o get-pip.py && \
-    python3 get-pip.py && \
-    rm get-pip.py
-
-RUN ln -s /usr/bin/python3.9 /usr/bin/python && \
-    ln -s /usr/bin/pip3 /usr/bin/pip
-
+# RUN apt update
+# RUN apt-get install -y python3.12 python3.12-distutils
+# RUN apt install make
+RUN apt install -y python3-pip
+# RUN wget http://npm.taobao.org/mirrors/python/3.12.1/Python-3.12.1.tgz
+# RUN tar -zxf Python-3.12.1.tgz && cd Python-3.12.1 && \
+#     mkdir -p /opt/python/3.12.1 && \
+#     ./configure --prefix=/opt/python/3.12.1 --enable-shared --with-ssl --enable-optimizations && \
+#     make && make install && \
+#     cd .. && rm -rf Python-3.12.1*
+# RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3
+
+# RUN curl http://fileshare.yoqi.me/d/DevFiles/Develop/Python/get-pip.py?sign=17C5fjx9l5VpBJ6FCHonje5nEEkylSINsPlKsASVkRc=:1702263152 -o get-pip.py && \
+#     python3 get-pip.py && \
+#     rm get-pip.py
+
+# RUN ln -s /usr/bin/python3.9 /usr/bin/python && \
+#     ln -s /usr/bin/pip3 /usr/bin/pip
 
 # install R
 RUN apt-get update && apt-get install -y \
-    r-base r-base-dev 
+    r-base r-base-dev
 
 # install ruby
-# RUN apt-get update && apt-get install -y \
-#     ruby-full rubygems ruby-dev
+RUN apt-get update && apt-get install -y \
+    ruby-full rubygems ruby-dev
 
 # install rust
-# RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
+RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
 
 # install .net core 6.0
 # RUN wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \
@@ -109,16 +115,15 @@ RUN export GOPROXY="https://goproxy.io,direct"
 RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
 RUN apt-get install -y nodejs
 RUN npm config set registry http://registry.npm.taobao.org --global
-RUN npm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/ --global
-RUN npm config set ELECTRON_BUILDER_BINARIES_MIRROR https://npmmirror.com/mirrors/electron-builder-binaries/ --global
+# RUN npm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/ --global
+# RUN npm config set ELECTRON_BUILDER_BINARIES_MIRROR https://npmmirror.com/mirrors/electron-builder-binaries/ --global
 RUN npm install -g yarn pnpm
 
-RUN rm -rf /var/lib/apt/lists/*
-
 LABEL email="liuyuqi<liuyuqi.gov@msn.cn>"
 WORKDIR /workspaces
 
 RUN apt-get install -y openssh-server
+RUN rm -rf /var/lib/apt/lists/*
 
 # 指定字符集支持命令行输入中文(根据需要选择字符集)
 ENV LANG C.UTF-8