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/*
|
|
|
|
|
|
|
|
# Consumer
|
|
|
|
|
|
|
|
WORKDIR /mycdc
|
|
|
|
COPY package.json package-lock.json ./
|
2024-04-04 15:40:22 +00:00
|
|
|
RUN npm install --omit=dev \
|
|
|
|
&& 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
|
|
|
|
|
|
|
COPY config config
|
|
|
|
COPY \
|
|
|
|
LICENSE \
|
|
|
|
README.md \
|
|
|
|
consumer.js \
|
|
|
|
queue.js \
|
|
|
|
./
|
|
|
|
|
|
|
|
CMD ["node", "consumer.js"]
|