Github repo https://github.com/tenzan/nginx-docker
FROM nginx COPY sites-available-default /etc/nginx/sites-available/default COPY app-dir /usr/share/nginx/html
sites-available-default is the file and
app-dir is a directory containing
I was able to build and run container with steps:
docker build -t nginx-cont . docker run --name nginx-cont -d -p 8080:80 nginx
and was able to check the nginx default page at http://192.168.99.100:8080/
192.168.99.100 is the docker-machine default ip.
nginx-cont, I’ve confirmed that
sites-available-default and the content of
app-dir were not copied over. Where am I missing?