Public Repository

Last pushed: a year ago
Short Description
Node.js
Full Description

FROM centos

ENV NODE_PORT 5000

Instalando Node.js

RUN yum -y install gcc-c++ make && \
curl -sL https://rpm.nodesource.com/setup_6.x | bash - && \
yum -y install nodejs && \
node -v

Instalando o PM2

RUN npm install -g pm2 && \
pm2 -v

Instalando a aplicação baseada em Node.js

ADD server /tmp/server
RUN cd /tmp/server && npm install

Rodando a aplicação

CMD ["pm2","start","--no-daemon","/tmp/server/index.js","--","port=5000"]

EXPOSE ${NODE_PORT}

Docker Pull Command
Owner
jfeldmann

Comments (0)