-
Notifications
You must be signed in to change notification settings - Fork 60
/
.dockerfile_kbuilder
45 lines (39 loc) · 1.06 KB
/
.dockerfile_kbuilder
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
FROM like_dbg_base:latest
LABEL maintainer="Christopher Krah <[email protected]>"
ENV DEBIAN_FRONTEND noninteractive
ARG TOOLCHAIN_ARCH
ARG CC
ARG LLVM
ARG ARCH
ARG USER
ARG CROSS_COMPILE
RUN apt-get update && \
set -e && \
apt-get install -yq --no-install-recommends \
libncurses-dev \
libssl-dev \
xz-utils \
ccache \
bc \
gcc-$TOOLCHAIN_ARCH-linux-gnu \
binutils-$TOOLCHAIN_ARCH-linux-gnu \
flex \
bison \
cpio \
rsync \
llvm \
clang \
lld \
lldb \
libelf-dev && \
apt-get -y autoremove --purge && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /home/$USER
RUN echo "CROSS_COMPILE=$CANADIAN_CROSS" >> /etc/environment && \
echo "CC=$CC" >> /etc/environment && \
echo "LLVM=$LLVM" >> /etc/environment && \
echo "ARCH=$ARCH" >> /etc/environment
WORKDIR /io
HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=2s CMD ps aux | grep "sshd -D" | grep -v grep || exit 1
CMD ["/usr/sbin/sshd", "-D"]