-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
32 lines (24 loc) · 970 Bytes
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM gitpod/workspace-full
USER root
RUN apt-get update && apt-get install nim
ENV FLUTTER_VERSION=2.8.1-stable
# misc deps
RUN apt-get install -y \
libasound2-dev \
libgtk-3-dev \
libnss3-dev \
fonts-noto \
fonts-noto-cjk
# Install dart
USER root
RUN curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& curl -fsSL https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list \
&& install-packages build-essential dart libkrb5-dev gcc make gradle android-tools-adb android-tools-fastboot
# Install flutter
USER gitpod
RUN cd /home/gitpod \
&& wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${FLUTTER_VERSION}.tar.xz \
&& tar -xvf flutter*.tar.xz \
&& rm -f flutter*.tar.xz
RUN flutter/bin/flutter precache
RUN echo 'export PATH="$PATH:/home/gitpod/flutter/bin"' >> /home/gitpod/.bashrc