diff --git a/Dockerfile.consumer b/Dockerfile.consumer index 478ec15..4fb4926 100644 --- a/Dockerfile.consumer +++ b/Dockerfile.consumer @@ -17,12 +17,9 @@ RUN apt-get update \ 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 +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) COPY config config COPY \ diff --git a/Dockerfile.producer b/Dockerfile.producer index 01e403e..a320a0c 100644 --- a/Dockerfile.producer +++ b/Dockerfile.producer @@ -13,16 +13,13 @@ RUN apt-get update \ && apt-get install -y --no-install-recommends nodejs \ && rm -rf /var/lib/apt/lists/* -# Consumer +# Producer 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 +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) COPY config config COPY \ diff --git a/package.json b/package.json index 9ffa101..f731710 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mycdc", - "version": "0.0.1", + "version": "0.0.2", "author": "Verdnatura Levante SL", "description": "Asynchronous DB calculations reading the binary log", "license": "GPL-3.0",