improve
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -1,8 +1,12 @@
|
||||
FROM i386/alpine:latest AS fetcher
|
||||
FROM i386/alpine:latest AS glide-fetcher
|
||||
ARG CACHE_BUST=10
|
||||
RUN apk add --no-cache git ca-certificates
|
||||
COPY .docker-cache/glide.ref /tmp/glide.ref
|
||||
WORKDIR /src
|
||||
RUN echo "$CACHE_BUST" && git clone --depth 1 --branch retrodebian --single-branch https://gitea.chacha.ddns.net/chacha/glide.git
|
||||
RUN cat /tmp/glide.ref > /dev/null && \
|
||||
echo "$CACHE_BUST" > /dev/null && \
|
||||
git clone --depth 1 --branch retrodebian --single-branch https://gitea.chacha.ddns.net/chacha/glide.git && \
|
||||
rm -Rf glide/.git
|
||||
|
||||
# building a modified Kernel + modules + libs
|
||||
FROM lpenz/debian-etch-i386-minbase AS kernel-builder
|
||||
@@ -24,7 +28,7 @@ RUN (echo "deb http://archive.debian.org/debian etch main non-free" > /etc/apt/s
|
||||
|
||||
# Preparing Kernel + patchs + modules
|
||||
WORKDIR /usr/src
|
||||
COPY --from=fetcher /src/glide glide
|
||||
COPY --from=glide-fetcher /src/glide glide
|
||||
COPY unionfs-2.2.3_for_2.6.24.diff.gz ./
|
||||
COPY nvidia.patch ./
|
||||
RUN tar xjf linux-source-2.6.24.tar.bz2 && \
|
||||
@@ -118,12 +122,16 @@ RUN /usr/src/buildglidepkg.sh sst1
|
||||
|
||||
#RUN rm *.gz *.bz2 && rm -Rf glide && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
FROM i386/alpine:latest AS game-builder
|
||||
FROM i386/alpine:latest AS ut99-builder
|
||||
RUN apk add --no-cache git ca-certificates
|
||||
ARG CACHE_BUST=10
|
||||
COPY .docker-cache/ut99.ref /tmp/ut99.ref
|
||||
# Package UT99
|
||||
WORKDIR /root
|
||||
RUN echo "$CACHE_BUST" && git clone --depth 1 --branch master --single-branch https://gitea.chacha.ddns.net/chacha/UT99-Official.git ut-game
|
||||
RUN cat /tmp/ut99.ref > /dev/null && \
|
||||
echo "$CACHE_BUST" && \
|
||||
git clone --depth 1 --branch master --single-branch https://gitea.chacha.ddns.net/chacha/UT99-Official.git ut-game && \
|
||||
rm -Rf ut-game/.git
|
||||
COPY games/ut99/ut-install-436.run ./
|
||||
RUN chmod +x ut-install-436.run && \
|
||||
./ut-install-436.run --target ./ut || true && \
|
||||
@@ -159,7 +167,7 @@ RUN chmod +x ut-install-436.run && \
|
||||
FROM lpenz/debian-lenny-i386-minbase
|
||||
WORKDIR /root
|
||||
COPY --from=kernel-builder /usr/src/*.deb .
|
||||
COPY --from=game-builder /root/ut-game ./ut-game
|
||||
COPY --from=ut99-builder /root/ut-game ./ut-game
|
||||
COPY update-initramfs.sh .
|
||||
COPY zzz-config-live.sh .
|
||||
COPY desktop .
|
||||
|
||||
Reference in New Issue
Block a user