Skip to content

Commit

Permalink
Switch to bash image.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Sep 9, 2024
1 parent 720efcc commit d52758f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d52758f

Please sign in to comment.