FROM nginx:latest # remove the default config RUN rm /etc/nginx/conf.d/default.conf && rm /etc/nginx/nginx.conf # create new root folder RUN mkdir -p /var/www/myems-web # Note: You should run 'npm run build' in the web direction to generate the production build. COPY nginx.conf /etc/nginx/ COPY ./build/ /var/www/myems-web EXPOSE 80 CMD ["nginx", "-c", "/etc/nginx/nginx.conf", "-g", "daemon off;"]