shadow-up: Don't polute everithing...
This commit is contained in:
parent
a352911868
commit
cdcf87f879
@ -3,6 +3,9 @@
|
|||||||
mount -t proc proc /proc
|
mount -t proc proc /proc
|
||||||
mount -t sysfs sysfs /sys
|
mount -t sysfs sysfs /sys
|
||||||
|
|
||||||
|
rm /dev/null; mknod -m 0666 /dev/null c 1 3
|
||||||
|
rm /dev/zero; mknod -m 0666 /dev/zero c 1 5
|
||||||
|
|
||||||
ln -sf ssmtp /usr/sbin/sendmail
|
ln -sf ssmtp /usr/sbin/sendmail
|
||||||
|
|
||||||
mdev -s
|
mdev -s
|
||||||
@ -63,9 +66,6 @@ done
|
|||||||
/usr/bin/setsid /bin/shadow-up > /dev/null 2> /var/log/sup.log &
|
/usr/bin/setsid /bin/shadow-up > /dev/null 2> /var/log/sup.log &
|
||||||
|
|
||||||
# Prepare bonus 2
|
# Prepare bonus 2
|
||||||
rm /dev/null; mknod -m 0666 /dev/null c 1 3
|
|
||||||
rm /dev/zero; mknod -m 0666 /dev/zero c 1 5
|
|
||||||
|
|
||||||
mkdir -p /mnt
|
mkdir -p /mnt
|
||||||
|
|
||||||
for l in a b c d e f g h i j k l m n o p q r s t u v w x y z zz; do
|
for l in a b c d e f g h i j k l m n o p q r s t u v w x y z zz; do
|
||||||
|
@ -12,7 +12,7 @@ ADD cmd ./
|
|||||||
RUN go build -v -ldflags="-s -w" -tags netgo -o shadow-up
|
RUN go build -v -ldflags="-s -w" -tags netgo -o shadow-up
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.17
|
FROM scratch
|
||||||
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
||||||
|
|
||||||
COPY --from=gobuild /go/src/shadow-up/shadow-up /bin/shadow-up
|
COPY --from=gobuild /go/src/shadow-up/shadow-up /bin/shadow-up
|
||||||
|
Reference in New Issue
Block a user