diff --git a/Dockerfile b/Dockerfile index 5282842..f08cc1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,8 @@ WORKDIR /busybox # Copy the busybox build config (limited to httpd) COPY .config . -# Compile and install busybox -RUN make && make install +# Compile +RUN make && ./make_single_applets.sh # Create a non-root user to own the files and run our server RUN adduser -D static @@ -31,8 +31,8 @@ EXPOSE 3000 # Copy over the user COPY --from=builder /etc/passwd /etc/passwd -# Copy the busybox static binary -COPY --from=builder /busybox/_install/bin/busybox / +# Copy the static binary +COPY --from=builder /busybox/busybox_HTTPD /busybox_HTTPD # Use our non-root user USER static @@ -50,4 +50,4 @@ COPY httpd.conf . # COPY . . # Run busybox httpd -CMD ["/busybox", "httpd", "-f", "-v", "-p", "3000", "-c", "httpd.conf"] +CMD ["/busybox_HTTPD", "-f", "-v", "-p", "3000", "-c", "httpd.conf"]