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:
parent
8bd2e51813
commit
d97b628b3c
1 changed files with 7 additions and 5 deletions
12
Dockerfile
12
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
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ]
|
||||
|
|
Loading…
Reference in a new issue