-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
40 lines (36 loc) · 1.3 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
FROM ubuntu:16.04
ARG UID=501
ARG UNAME=bacnh
# Update packages
RUN rm /bin/sh && ln -s bash /bin/sh \
# add user package
&& apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:openjdk-r/ppa \
&& apt-get update && apt-get install -y \
gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
xterm tar locales tree\
# Extra pkg
gnupg flex bison gperf zip curl zlib1g-dev lib32z1 \
lib32ncurses5 x11proto-core-dev libx11-dev libxml-simple-perl libc6-dev libgl1-mesa-dev \
tofrodos libxml2-utils xsltproc openjdk-7-jdk vim \
# NFS Server
nfs-kernel-server \
# add user tux
&& useradd -m -u $UID -g staff -s /bin/bash $UNAME \
&& mkdir /opt/build \
&& chown -R ${UID}:staff /opt/build \
&& echo "/opt *(rw,sync,no_subtree_check,fsid=0,no_root_squash)" >> /etc/exports \
&& service nfs-kernel-server start
# Setup the environment
RUN locale-gen en_US.UTF-8 && update-locale LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
USER $UNAME
WORKDIR /opt
VOLUME [ "/opt" ]
ENTRYPOINT /bin/bash
CMD ["true"]