mycdc/Dockerfile.producer

35 lines
638 B
Docker

FROM debian:bookworm-slim
ARG DEBIAN_FRONTEND=noninteractive
# NodeJs
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg2 \
&& 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 ./
RUN npm install --only=prod
ARG BUILD_ID=unknown
ARG VERSION
ENV VERSION $VERSION
RUN echo $VERSION
COPY config config
COPY \
LICENSE \
README.md \
mycdc.js \
./
CMD ["node", "mycdc.js"]