summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
author87594589-7087-4f7c-b204-e84312ae374c <35880975+87594589-7087-4f7c-b204-e84312ae374c@users.noreply.github.com>2020-05-08 12:08:49 -0500
committerGitHub <noreply@github.com>2020-05-08 12:08:49 -0500
commitd97b628b3c26ab3ca40f27e7ff914760187795b5 (patch)
tree819498e9ddcf799f65097071c3c7810dfaf047ad /Dockerfile
parent8bd2e518131aba37d20797814ecaf6d912c95b5f (diff)
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. :)
Diffstat (limited to 'Dockerfile')
-rwxr-xr-xDockerfile12
1 files 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
+
+COPY . /opt/html
-RUN rm -rf /usr/share/nginx/html
-COPY . /usr/share/nginx/html
+EXPOSE 80
-EXPOSE 80 \ No newline at end of file
+ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ]