Browse Source

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. :)
87594589-7087-4f7c-b204-e84312ae374c 5 years ago
parent
commit
d97b628b3c
1 changed files with 7 additions and 5 deletions
  1. 7 5
      Dockerfile

+ 7 - 5
Dockerfile

@@ -1,9 +1,11 @@
-FROM nginx:alpine
+FROM busybox
+
 LABEL maintainer="Jeroen Pardon"
 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
+ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ]