Make challenge image
This commit is contained in:
parent
10fea52dfe
commit
43d1f56e71
9 changed files with 147 additions and 0 deletions
43
challenge/Dockerfile
Normal file
43
challenge/Dockerfile
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
FROM alpine AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk/ && \
|
||||
cp /etc/apk/repositories /out/etc/apk/ && \
|
||||
cp -r /etc/apk/keys /out/etc/apk/keys
|
||||
|
||||
RUN apk add --no-cache \
|
||||
mdocml-apropos
|
||||
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
alpine-baselayout \
|
||||
beep \
|
||||
busybox \
|
||||
ca-certificates \
|
||||
curl \
|
||||
curl-doc \
|
||||
fbida-fbi \
|
||||
fbida-doc \
|
||||
htop \
|
||||
htop-doc \
|
||||
iproute2-doc \
|
||||
man \
|
||||
musl \
|
||||
openssh-keygen \
|
||||
poppler-utils \
|
||||
ssmtp \
|
||||
testdisk \
|
||||
testdisk-doc \
|
||||
tini \
|
||||
util-linux \
|
||||
util-linux-doc
|
||||
|
||||
RUN makewhatis /out/usr/share/man
|
||||
|
||||
RUN rm -rf /out/etc/inittab
|
||||
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=mirror /out/ /
|
||||
COPY init /init
|
||||
COPY etc/ /etc/
|
||||
COPY lib/ /lib/
|
||||
Reference in a new issue