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
Raw Permalink Normal View History

2023-12-21 18:46:46 +00:00
FROM debian:bookworm-slim
2020-01-27 16:25:39 +00:00
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg2 \
libfontconfig \
2023-12-21 18:46:46 +00:00
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
2020-01-27 16:25:39 +00:00
&& 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 ./
2023-12-21 19:05:26 +00:00
RUN npm install --omit=dev
2020-01-27 16:25:39 +00:00
2020-01-28 13:57:24 +00:00
COPY index.js config.yml rproxy.handlebars ./
2020-01-27 16:25:39 +00:00
CMD ["pm2-runtime", "index.js"]