Browse Source

Add 'flutter/.gitpod.Dockerfile'

天问 3 years ago
parent
commit
7f2ebc133e
1 changed files with 14 additions and 0 deletions
  1. 14 0
      flutter/.gitpod.Dockerfile

+ 14 - 0
flutter/.gitpod.Dockerfile

@@ -0,0 +1,14 @@
+FROM gitpod/workspace-full
+                    
+USER gitpod
+
+WORKDIR /home/gitpod
+
+RUN git clone https://github.com/flutter/flutter && \
+    /home/gitpod/flutter/bin/flutter channel master && \
+    /home/gitpod/flutter/bin/flutter upgrade && \
+    /home/gitpod/flutter/bin/flutter config --enable-web && \
+    /home/gitpod/flutter/bin/flutter --version
+
+ENV PUB_CACHE=/workspace/.pub_cache
+ENV PATH="/home/gitpod/flutter/bin:$PATH"