-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
63 lines (55 loc) · 1.19 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ubuntu:latest
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
build-essential \
bash \
bc \
binutils \
bzip2 \
cpio \
g++ \
gcc \
git \
gzip \
locales \
libncurses5-dev \
libdevmapper-dev \
libsystemd-dev \
make \
mercurial \
whois \
patch \
perl \
python3 \
python3-dev \
rsync \
sed \
tar \
vim \
unzip \
zip \
wget \
curl \
bison \
flex \
file \
libssl-dev \
libfdt-dev \
libgtk-3-dev \
clang \
syslinux-utils \
libelf-dev
# Sometimes Buildroot need proper locale, e.g. when using a toolchain
# based on glibc.
RUN locale-gen en_US.utf8
ENV USER root
RUN git clone git://git.buildroot.net/buildroot --depth=1 --branch=master /root/buildroot
# copy and run the flutter manager script
COPY scripts/dahlia_flutter_manager.sh /root/dahlia_flutter_manager.sh
RUN bash ./root/dahlia_flutter_manager.sh install
COPY buildroot/.config /root/buildroot/.config
# copy the config also to /buildroot_output because it will use that config to build
COPY buildroot/.config /buildroot_output/
WORKDIR /root/buildroot
RUN ["/bin/bash"]