collection.dockerfile/alpine/nginx/Dockerfile

8 lines
233 B
Docker
Raw Normal View History

2022-01-17 15:56:05 +08:00
FROM alpine:latest
ENV container docker
RUN apk update; apk upgrade; apk add nginx nginx-mod-http-dav-ext
RUN mkdir -p /run/nginx
COPY index.html /var/www/index.html
2022-01-17 15:56:05 +08:00
EXPOSE 80
CMD [ "/usr/sbin/nginx", "-c", "/etc/nginx/nginx.conf" ]