forked from slimbootloader/slimbootloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 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
FROM ubuntu:18.04
# Install build dependencies
RUN apt-get update && apt-get -y install sudo build-essential python python3 \
uuid-dev nasm openssl gcc-multilib git m4 bison flex qemu-system-x86
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 0
# Install ACPICA Utilities
ADD http://ftp.br.debian.org/debian/pool/main/a/acpica-unix/acpica-tools_20160831-1+b1_amd64.deb /tmp
RUN cd /tmp && \
dpkg -i acpica-tools_20160831-1+b1_amd64.deb && \
rm *.deb && \
apt-get install -f && \
apt-get -y install python3-distutils
# Install stitching dependencies
RUN apt-get install -y --no-install-recommends libxcb1 \
libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
libxcb-randr0 libxcb-render-util0 libxcb-shape0 \
libxcb-sync1 libxcb-xfixes0 libxcb-xinerama0 \
libxkbcommon-x11-0 unzip && \
apt-get clean
# Install UTF8 as default locale
ENV LANG=en_US.UTF-8
RUN apt-get install --no-install-recommends -y locales && \
apt-get clean && \
locale-gen ${LANG} && update-locale LANG=${LANG}
# Add a user account, give sudo access
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
USER docker
RUN git config --global user.name "User" && git config --global user.email "[email protected]"
CMD /bin/bash