dockerfile中组织nginx和lua环境?


刚刚学习了下dockerfile,想制作一个镜像,包含nginx和lua环境,不知怎么下手写dockerfile,个人感觉有两种方式:
一、基于ubuntu镜像,安装nginx和lua
FROM ubuntu
RUN apt-get install nginx
RUN apt-get install lua
二、基于nginx镜像,安装lua
FROM nginx
RUN apt-get install lua

请问怎样才是正确姿势,求给出具体书写例子,谢谢!

docker dockerfile nginx Ubuntu

春哥教信徒 9 years, 4 months ago

Your Answer