This repository has been archived on 2024-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
docker-discover/Dockerfile

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"]