test for host-indeependent data container for apox0/nginx
907
cat Dockerfile
FROM alpine
RUN apk update && apk upgrade
RUN
apk add
bash
bash-completion
wget
RUN mkdir /www
#RUN wget -O /www/index.php http://www.ox.allup.work/000/index.txt
VOLUME /www
RUN rm -rf /var/cache/apk/*
CMD while true;do wget -O /www/index.php http://www.ox.allup.work/000/index.txt;sleep 10s;done
docker build -t apox0/wwwdata .
; this data container is constantly running, update from the sourse every 10 seconds docker run -d --name wwwdata apox0/wwwdata
; these web containers consume the data from container wwwdata docker run -d --volumes-from wwwdata -p 80:80 apox0/nginx docker run -d --volumes-from wwwdata -p 81:80 apox0/nginx
Content type
Image
Digest
Size
5.1 MB
Last updated
over 10 years ago
docker pull apox0/wwwdata