nginx: nginx -g "daemon off;"
httpd: httpd -DFOREGROUND
Tomcat: catalina.sh run
FROM java
ENV PATH=$PATH:/opt/tomcat/bin/
COPY tomcat /opt/tomcat
CMD ["catalina.sh","run"]
Redis: redis-server
FROM centos
RUN yum -y install gcc make && yum clean all
ADD redis-5.0.5.tar.gz /root/
RUN cd /root/redis-5.0.5 && make && make install && cp redis.conf /etc/ && rm -rf /root/redis*
CMD ["redis-server","/etc/redis.conf"]
评论
发表评论