diff options
| author | 87594589-7087-4f7c-b204-e84312ae374c <35880975+87594589-7087-4f7c-b204-e84312ae374c@users.noreply.github.com> | 2020-05-08 12:08:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-08 12:08:49 -0500 |
| commit | d97b628b3c26ab3ca40f27e7ff914760187795b5 (patch) | |
| tree | 819498e9ddcf799f65097071c3c7810dfaf047ad /Dockerfile | |
| parent | 8bd2e518131aba37d20797814ecaf6d912c95b5f (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-x | Dockerfile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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" ] |