From 295afd8720b305239b981c853cc08edf89a28da7 Mon Sep 17 00:00:00 2001 From: Florin Lipan Date: Tue, 7 May 2024 07:48:59 +0200 Subject: [PATCH] Rename busybox_HTTPD to busybox-httpd and clarify new CMD call --- Dockerfile | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f08cc1a..8fef9f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ EXPOSE 3000 COPY --from=builder /etc/passwd /etc/passwd # Copy the static binary -COPY --from=builder /busybox/busybox_HTTPD /busybox_HTTPD +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"] diff --git a/README.md b/README.md index f03ff5b..ce920f3 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ FROM lipanski/docker-static-website:latest # Copy your static files COPY . . -CMD ["/busybox", "httpd", "-f", "-v", "-p", "3000", "-c", "httpd.conf"] +CMD ["/busybox-httpd", "-f", "-v", "-p", "3000", "-c", "httpd.conf"] ``` **NOTE:** Sending a `TERM` signal to your TTY running the container won't get propagated due to how busybox is built. Instead you can call `docker stop` (or `docker kill` if can't wait 15 seconds). Alternatively you can run the container with `docker run -it --rm --init` which will propagate signals to the process correctly.