소스 검색

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 년 전
부모
커밋
d97b628b3c
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 5
      Dockerfile

+ 7 - 5
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
+ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ]