-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (56 loc) · 1.35 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
64
65
66
67
68
# This file was copied from here: https://github.com/bstubert/cuteradio/blob/master/Dockerfile
# https://www.embeddeduse.com/2019/02/11/using-docker-containers-for-yocto-builds/
# Thanks to the original author!
FROM ubuntu:20.04
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y \
gawk \
wget \
git \
diffstat \
unzip \
texinfo \
gcc \
build-essential \
chrpath \
socat \
cpio \
python3 \
python3-pip \
python3-pexpect \
xz-utils \
debianutils \
iputils-ping \
python3-git \
python3-jinja2 \
libegl1-mesa \
libsdl1.2-dev \
pylint3 \
xterm \
python3-subunit \
mesa-common-dev \
make \
python3-pip \
vim \
mc \
locales \
tmux
RUN pip3 install \
sphinx \
sphinx_rtd_theme \
pyyaml
RUN rm /bin/sh && ln -s bash /bin/sh
RUN locale-gen en_US.UTF-8 && update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV USER_NAME nas
ARG host_uid=1000
ARG host_gid=1000
RUN groupadd -g $host_gid $USER_NAME && useradd -g $host_gid -m -s /bin/bash -u $host_uid $USER_NAME
USER $USER_NAME
ENV BUILD_DIR /home/$USER_NAME/poky
RUN mkdir -p $BUILD_DIR
WORKDIR $BUILD_DIR
ENV TEMPLATECONF=$BUILD_DIR/meta-nas/custom
CMD source $BUILD_DIR/oe-init-build-env && /bin/bash