25 lines
642 B
Docker
25 lines
642 B
Docker
FROM debian:buster-slim
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
curl \
|
|
ca-certificates \
|
|
gnupg2 \
|
|
libfontconfig \
|
|
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
|
|
&& apt-get install -y --no-install-recommends \
|
|
nodejs \
|
|
&& apt-get purge -y --auto-remove \
|
|
gnupg2 \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& npm -g install pm2
|
|
|
|
WORKDIR /docker-discover
|
|
COPY package.json package-lock.json ./
|
|
RUN npm install --only=prod
|
|
|
|
COPY index.js config.yml rproxy.handlebars ./
|
|
|
|
CMD ["pm2-runtime", "index.js"]
|