shadow-up: Don't polute everithing...

This commit is contained in:
nemunaire 2023-02-20 20:03:49 +01:00
parent a352911868
commit cdcf87f879
2 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,9 @@
mount -t proc proc /proc
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
mdev -s
@ -63,9 +66,6 @@ done
/usr/bin/setsid /bin/shadow-up > /dev/null 2> /var/log/sup.log &
# 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
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

View File

@ -12,7 +12,7 @@ ADD cmd ./
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>
COPY --from=gobuild /go/src/shadow-up/shadow-up /bin/shadow-up