From 345d2706abd080aab2eb406494ad7ebbefb8fc34 Mon Sep 17 00:00:00 2001 From: Giacomo Citi Date: Tue, 1 Oct 2024 10:31:50 +0200 Subject: [PATCH] COPY instead of ADD in dockerfile --- cli.Dockerfile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/cli.Dockerfile b/cli.Dockerfile index 3a037d4ac..3d366ea6f 100644 --- a/cli.Dockerfile +++ b/cli.Dockerfile @@ -2,14 +2,14 @@ FROM node:18-alpine AS builder WORKDIR /app -ADD package.json yarn.lock ./ -ADD ./cli/package.json ./cli/ -ADD ./packages/core/package.json ./packages/core/ -ADD ./packages/model/package.json ./packages/model/ -ADD ./packages/testing/package.json ./packages/testing/ +COPY package.json yarn.lock ./ +COPY ./cli/package.json ./cli/ +COPY ./packages/core/package.json ./packages/core/ +COPY ./packages/model/package.json ./packages/model/ +COPY ./packages/testing/package.json ./packages/testing/ # for every new package foo add: -# ADD ./packages/foo/package.json ./packages/foo/ +# COPY ./packages/foo/package.json ./packages/foo/ # install and build backend RUN yarn install --frozen-lockfile @@ -30,16 +30,16 @@ FROM node:18-alpine WORKDIR /app -ADD package.json yarn.lock ./ -ADD ./cli/package.json ./cli/ +COPY package.json yarn.lock ./ +COPY ./cli/package.json ./cli/ COPY ./cli/*.ttl ./cli/ -ADD ./cli/pipelines ./cli/pipelines/ -ADD ./packages/core/package.json ./packages/core/ -ADD ./packages/model/package.json ./packages/model/ -ADD ./packages/testing/package.json ./packages/testing/ +COPY ./cli/pipelines ./cli/pipelines/ +COPY ./packages/core/package.json ./packages/core/ +COPY ./packages/model/package.json ./packages/model/ +COPY ./packages/testing/package.json ./packages/testing/ # for every new package foo add -#ADD ./packages/foo/package.json ./packages/foo/ +#COPY ./packages/foo/package.json ./packages/foo/ RUN yarn install --production --frozen-lockfile COPY --from=builder /app/dist/cli ./cli/