25 lines
645 B
Docker
25 lines
645 B
Docker
FROM debian:bookworm-slim
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
curl \
|
|
ca-certificates \
|
|
gnupg2 \
|
|
libfontconfig \
|
|
&& curl -fsSL https://deb.nodesource.com/setup_20.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 --omit=dev
|
|
|
|
COPY index.js config.yml rproxy.handlebars ./
|
|
|
|
CMD ["pm2-runtime", "index.js"]
|