2024-04-04 09:33:29 +00:00
|
|
|
FROM debian:bookworm-slim
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
# NodeJs
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
curl \
|
|
|
|
ca-certificates \
|
|
|
|
gnupg2 \
|
2024-04-04 15:43:47 +00:00
|
|
|
git \
|
2024-04-04 09:33:29 +00:00
|
|
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
|
|
&& apt-get install -y --no-install-recommends nodejs \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2024-04-04 15:40:22 +00:00
|
|
|
# Producer
|
2024-04-04 09:33:29 +00:00
|
|
|
|
|
|
|
WORKDIR /mycdc
|
|
|
|
COPY package.json package-lock.json ./
|
2024-04-04 16:01:13 +00:00
|
|
|
RUN npm install --omit=dev --no-audit --prefer-offline \
|
2024-04-04 15:40:22 +00:00
|
|
|
&& git clone --depth 1 --branch fix-143 https://github.com/juan-ferrer-toribio/zongji.git \
|
|
|
|
&& (cd zongji && npm install --omit=dev)
|
2024-04-04 09:33:29 +00:00
|
|
|
|
2024-04-17 09:57:21 +00:00
|
|
|
COPY config \
|
|
|
|
queues \
|
2024-04-04 09:33:29 +00:00
|
|
|
LICENSE \
|
|
|
|
README.md \
|
|
|
|
mycdc.js \
|
2024-04-04 16:05:18 +00:00
|
|
|
index.js \
|
2024-04-04 09:33:29 +00:00
|
|
|
./
|
|
|
|
|
2024-04-04 16:01:13 +00:00
|
|
|
CMD ["node", "index.js"]
|