From d97b628b3c26ab3ca40f27e7ff914760187795b5 Mon Sep 17 00:00:00 2001 From: 87594589-7087-4f7c-b204-e84312ae374c <35880975+87594589-7087-4f7c-b204-e84312ae374c@users.noreply.github.com> Date: Fri, 8 May 2020 12:08:49 -0500 Subject: [PATCH] Remove need of NGINX and root Example how to run: ``` docker run \ -d \ -p 4000:80 \ --cap-add=setuid \ sui ``` Busybox has an httpd function, and this brings the size down greatly. :) --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f036cfd..0193116 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ -FROM nginx:alpine +FROM busybox + LABEL maintainer="Jeroen Pardon" -RUN apk add nano +WORKDIR /opt/html -RUN rm -rf /usr/share/nginx/html -COPY . /usr/share/nginx/html +COPY . /opt/html -EXPOSE 80 \ No newline at end of file +EXPOSE 80 + +ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ]