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. :)
This commit is contained in:
87594589-7087-4f7c-b204-e84312ae374c 2020-05-08 12:08:49 -05:00 committed by GitHub
parent 8bd2e51813
commit d97b628b3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
EXPOSE 80
ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ]