From d52758fe683da8d0910ec667dd9e4727afb4df57 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Mon, 9 Sep 2024 00:19:59 -0400 Subject: [PATCH] Switch to bash image. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ca5a03..f1c4b1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM busybox as builder -RUN adduser -D -H -u 65534 -G nogroup nobody +FROM bash +RUN echo "nobody:x:65534:65534:Nobody:/:" > /etc/nobody FROM scratch WORKDIR /html -COPY --from=builder /etc/passwd /etc/passwd +COPY --from=0 /etc/nobody /etc/passwd USER nobody COPY http-server /http-server EXPOSE 5000