docker/java-nodejs/jdk8-node7/Dockerfile

24 lines
857 B
Docker
Raw Normal View History

2017-05-08 16:42:24 +08:00
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/java:openjdk-8-jdk
2020-09-13 15:49:05 +08:00
MAINTAINER kennylee <kennylee26@gmail.com>
2017-05-08 16:42:24 +08:00
RUN apt-get update && \
apt-get install -y python-software-properties software-properties-common
2017-05-08 17:01:29 +08:00
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
2017-05-08 16:42:24 +08:00
RUN apt-get install -y nodejs && \
apt-get install -y inetutils-ping net-tools dnsutils supervisor && \
apt-get install -y python-pip && \
pip install supervisor-stdout
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
# add cnpm for taobao registry
RUN npm install -g cnpm pm2 --registry=https://registry.npm.taobao.org
COPY supervisor/supervisord.conf /etc/supervisor/supervisord.conf
COPY supervisor/conf.d/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Define default command.
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]