Clean up Dockerfile a bit
This commit is contained in:
parent
7c6363debe
commit
cc2ca85a91
1 changed files with 24 additions and 13 deletions
27
Dockerfile
27
Dockerfile
|
@ -1,10 +1,12 @@
|
||||||
# [Choice] bionic (18.04), focal (20.04)
|
# [Choice] bionic (18.04), focal (20.04)
|
||||||
ARG VARIANT="focal"
|
ARG VARIANT="focal"
|
||||||
|
|
||||||
|
## build tools
|
||||||
FROM ubuntu:${VARIANT} AS build
|
FROM ubuntu:${VARIANT} AS build
|
||||||
|
ENV DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND="noninteractive" apt-get update && \
|
RUN apt-get update && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -y install \
|
apt-get -y install \
|
||||||
tzdata gcc g++ gperf bison flex texinfo help2man make libncurses5-dev \
|
tzdata gcc g++ gperf bison flex texinfo help2man make libncurses5-dev \
|
||||||
python3-dev autoconf automake libtool libtool-bin gawk wget bzip2 xz-utils unzip \
|
python3-dev autoconf automake libtool libtool-bin gawk wget bzip2 xz-utils unzip \
|
||||||
patch libstdc++6 rsync git meson ninja-build
|
patch libstdc++6 rsync git meson ninja-build
|
||||||
|
@ -22,13 +24,22 @@ RUN wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.26.0.tar.x
|
||||||
|
|
||||||
ADD ct-ng.config .config
|
ADD ct-ng.config .config
|
||||||
RUN /usr/local/ct/bin/ct-ng build
|
RUN /usr/local/ct/bin/ct-ng build
|
||||||
RUN cd /build/ && git clone https://github.com/fail0verflow/hbc.git /build/hbc && cd /build/hbc/channel/wiiload && make
|
RUN cd /build/ && \
|
||||||
RUN git clone https://github.com/fail0verflow/bootmii-utils.git /build/bootmii-utils && cd /build/bootmii-utils/client && make
|
git clone https://github.com/fail0verflow/hbc.git /build/hbc && \
|
||||||
## Final build image
|
cd /build/hbc/channel/wiiload && \
|
||||||
FROM ubuntu:${VARIANT}
|
git checkout 13305cfbe5db47eebc5e62aeed14f7adfbb83a5a && \
|
||||||
|
make
|
||||||
|
RUN git clone https://github.com/fail0verflow/bootmii-utils.git /build/bootmii-utils && \
|
||||||
|
cd /build/bootmii-utils/client && \
|
||||||
|
git checkout a32b8f6520d136677213fcbb730035a7e89567e2 && \
|
||||||
|
make
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND="noninteractive" apt-get update && \
|
## final build image
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -y install \
|
FROM ubuntu:${VARIANT}
|
||||||
|
ENV DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get -y install \
|
||||||
patch ninja-build make bc ccache gcc libncurses-dev \
|
patch ninja-build make bc ccache gcc libncurses-dev \
|
||||||
kmod bison flex libssl-dev openssl
|
kmod bison flex libssl-dev openssl
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue