You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.4 KiB
63 lines
1.4 KiB
4 years ago
|
#FROM alpine:3.11
|
||
|
FROM node:alpine
|
||
|
|
||
|
LABEL MAINTAINERS="Guillaume Scheibel <guillaume.scheibel@gmail.com>, Damien DUPORTAL <damien.duportal@gmail.com>"
|
||
|
|
||
|
# Installing package required for the runtime
|
||
|
# build/llo-base-images/asciidoctor-alpine/docker-asciidoctor
|
||
|
RUN apk add --no-cache \
|
||
|
bash \
|
||
|
curl \
|
||
|
ca-certificates \
|
||
|
findutils \
|
||
|
font-bakoma-ttf \
|
||
|
git \
|
||
|
graphviz \
|
||
|
inotify-tools \
|
||
|
make \
|
||
|
python3 \
|
||
|
py3-pillow \
|
||
|
py3-setuptools \
|
||
|
tzdata \
|
||
|
unzip \
|
||
|
build-base \
|
||
|
libxml2-dev \
|
||
|
which
|
||
|
|
||
|
# Installing Python dependencies for additional
|
||
|
# functionnalities
|
||
|
RUN apk add --no-cache --virtual .pythonmakedepends \
|
||
|
build-base \
|
||
|
python3-dev \
|
||
|
py3-pip \
|
||
|
&& pip3 install --no-cache-dir \
|
||
|
actdiag \
|
||
|
pip install supervisor supervisor-stdout \
|
||
|
'blockdiag[pdf]' \
|
||
|
nwdiag \
|
||
|
seqdiag \
|
||
|
&& apk del -r --no-cache .pythonmakedepends
|
||
|
|
||
|
RUN ln -s /usr/local/bin/node /usr/bin/node
|
||
|
|
||
|
ADD supervisord.conf /etc/supervisor/supervisord.conf
|
||
|
ADD supervisord-iot.conf /etc/supervisor/conf.d/node-app.conf
|
||
|
ADD mpi_bootstrap /home/node
|
||
|
ADD startup.sh /home/node
|
||
|
|
||
|
ADD ttyd /usr/bin
|
||
|
ADD ssl-ttyd /home/node/ssl-ttyd
|
||
|
|
||
|
RUN mkdir -p /home/node/log \
|
||
|
&& mkdir -p /home/node/crond \
|
||
|
&& mkdir -p /home/node/run \
|
||
|
&& chmod -R 755 /home/node \
|
||
|
&& chown -R node.node /home/node
|
||
|
|
||
|
WORKDIR /home/node
|
||
|
VOLUME /home/node
|
||
|
|
||
|
EXPOSE 8080 8088 8084 3081
|
||
|
|
||
|
CMD ["/usr/bin/supervisord", "-c", "/home/node/startup.sh"]
|