-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.strech
48 lines (36 loc) · 1.43 KB
/
Dockerfile.strech
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
FROM debian:9
MAINTAINER Mirza Krak "[email protected]"
ENV DEBIAN_FRONTEND noninteractive
ENV user mirza
ENV group mirza
ENV uid 1010
ENV gid 1010
# We need to change to root to be able to install with apt-get
USER root
RUN apt-get update && apt-get install -y gawk wget git-core git-email sudo cpio cmake \
diffstat unzip texinfo gcc-multilib u-boot-tools rsync cbootimage bc \
build-essential kmod chrpath socat mtd-utils device-tree-compiler mtools \
lzop dosfstools parted libncurses5-dev patchutils tmux vim curl python \
libsdl1.2-dev python3 locales libssl-dev autoconf flex bison libtool \
python-m2crypto libcurl4-openssl-dev dos2unix tree \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get update && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/*
ENV USER_HOME /home/${user}
RUN groupadd -g ${gid} ${group} \
&& useradd -d "$USER_HOME" -u ${uid} -g ${gid} -m -s /bin/bash ${user}
RUN adduser mirza sudo
RUN echo "mirza ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
## Set LOCALE to UTF8
#
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
dpkg-reconfigure locales && \
/usr/sbin/update-locale LANG=en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /usr/bin/repo
RUN chmod a+x /usr/bin/repo
# Switch to user
USER ${user}
WORKDIR ${USER_HOME}
RUN mkdir -p project