mirror of
https://github.com/Xe/furry-happiness
synced 2024-12-23 02:57:04 +00:00
Update Linux, Tini and alpine
- Linux to latest LTS (5.10) - Alpine to 3.12, I had problems with making network working on later - Tini to latest release - builder ubuntu to latest LTS
This commit is contained in:
parent
7ba319db25
commit
3ddc4f0046
25
Dockerfile
25
Dockerfile
@ -1,36 +1,37 @@
|
|||||||
FROM ubuntu:bionic AS build
|
FROM ubuntu:focal AS build
|
||||||
COPY uml.config /uml.config
|
COPY uml.config /uml.config
|
||||||
ENV LINUX_VERSION linux-4.19.57
|
|
||||||
ENV LINUX_DOWNLOAD_URL https://cdn.kernel.org/pub/linux/kernel/v4.x/${LINUX_VERSION}.tar.xz
|
ENV LINUX_VERSION linux-5.10.47
|
||||||
|
ENV LINUX_DOWNLOAD_URL https://cdn.kernel.org/pub/linux/kernel/v5.x/${LINUX_VERSION}.tar.xz
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y install build-essential flex bison xz-utils wget ca-certificates bc linux-headers-4.15.0-47-generic \
|
&& apt-get -y install build-essential flex bison xz-utils wget ca-certificates bc \
|
||||||
&& wget ${LINUX_DOWNLOAD_URL} \
|
&& wget ${LINUX_DOWNLOAD_URL} \
|
||||||
&& tar xJf ${LINUX_VERSION}.tar.xz \
|
&& tar xJf ${LINUX_VERSION}.tar.xz \
|
||||||
&& rm ${LINUX_VERSION}.tar.xz \
|
&& rm ${LINUX_VERSION}.tar.xz \
|
||||||
&& cd ${LINUX_VERSION} \
|
&& cd ${LINUX_VERSION} \
|
||||||
&& cp /uml.config .config \
|
&& cp /uml.config .config \
|
||||||
&& make ARCH=um -j10 \
|
&& make ARCH=um olddefconfig \
|
||||||
|
&& make ARCH=um -j17 \
|
||||||
&& mv ./linux / \
|
&& mv ./linux / \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
&& rm -rf ${LINUX_VERSION}
|
&& rm -rf ${LINUX_VERSION}
|
||||||
|
|
||||||
FROM xena/alpine
|
FROM xena/alpine
|
||||||
|
|
||||||
COPY --from=build /linux /linux
|
|
||||||
ADD https://xena.greedo.xeserv.us/files/slirp /slirp
|
ADD https://xena.greedo.xeserv.us/files/slirp /slirp
|
||||||
|
|
||||||
# Add Tini
|
# Add Tini
|
||||||
ENV TINI_VERSION v0.18.0
|
ENV TINI_VERSION v0.19.0
|
||||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /chroot/tini
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /chroot/tini
|
||||||
RUN chmod +x /chroot/tini
|
|
||||||
|
|
||||||
# Set up chroot
|
# Set up chroot
|
||||||
RUN cd /chroot \
|
RUN wget -O - http://dl-cdn.alpinelinux.org/alpine/v3.12/releases/x86_64/alpine-minirootfs-3.12.7-x86_64.tar.gz | tar xz -C /chroot
|
||||||
&& wget -O - http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86_64/alpine-minirootfs-3.10.0-x86_64.tar.gz | tar xz \
|
|
||||||
&& chmod +x /linux \
|
COPY --from=build /linux /linux
|
||||||
&& chmod +x /slirp
|
|
||||||
COPY init.sh /chroot/init.sh
|
COPY init.sh /chroot/init.sh
|
||||||
COPY resolv.conf /chroot/etc/resolv.conf
|
COPY resolv.conf /chroot/etc/resolv.conf
|
||||||
|
RUN chmod +x /linux /slirp /chroot/tini
|
||||||
|
|
||||||
COPY runlinux.sh /runlinux.sh
|
COPY runlinux.sh /runlinux.sh
|
||||||
CMD /runlinux.sh
|
CMD /runlinux.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user