This is my working Dockerfile. Next steps is to do pub build as part of my dockerfile.
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y nginx
RUN rm -rf /etc/nginx/sites-enabled/default
# Define mountable directories.
#VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]
# Define working directory.
WORKDIR /etc/nginx
# Define default command.
# nginx.conf redirecting to index.html of the webapp
COPY nginx.conf /etc/nginx/nginx.conf
RUN mkdir -p /webapp
COPY build/ /webapp/
# Expose ports.
EXPOSE 80
EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]cd ../