-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (22 loc) · 930 Bytes
/
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
FROM ubuntu:22.04
# Generic apt basics
RUN apt -y update
RUN apt -y dist-upgrade
# Allow for file downlodas
RUN apt -y install --no-install-recommends wget ca-certificates
# Install compiler tools
RUN apt -y install --no-install-recommends make gcc bc bison python3-minimal dwarves flex
# Install misc utilities
RUN apt -y install --no-install-recommends kmod bash libxml2-utils jq
# Install headers
RUN apt -y install --no-install-recommends libc6-dev libelf-dev libssl-dev
# For interactive menuconfig
RUN apt -y install --no-install-recommends libncurses-dev pkg-config
# Set up tool paths, if not using the default versions
#RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 10
# Install the kernel and the modules
RUN mkdir -p /usr/src/wsl-kernel
COPY kernel.sh /usr/src/wsl-kernel/kernel.sh
COPY kernel.conf /usr/src/wsl-kernel/kernel.conf
# Run the builder script
CMD /usr/src/wsl-kernel/kernel.sh