Я думаю, это должно быть просто. Я пытался следовать этому учебнику :
мой текущий каталог на Mac /var/www/html/test/testme/misc/docker-static/web
Как мне обслуживать html-файлы без повторного создания контейнера каждый раз?
#
# BudgetTracker Dockerfile for UI
#
FROM ubuntu:latest
MAINTAINER Arunkumar Srisailapathi "sail.arunkumar@gmail.com"
USER root
RUN apt-get update
RUN apt-get install -y nginx nodejs
# Remove the default Nginx configuration file
RUN rm -v /etc/nginx/nginx.conf
# Copy a configuration file from the current directory
ADD nginx.conf /etc/nginx/
ADD web /usr/share/nginx/html/
ADD web /var/www/html/
# Append "daemon off;" to the beginning of the configuration
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
# Expose ports
EXPOSE 90
# Set the default command to execute
# when creating a new container
CMD service nginx start