From dd39335f256fe79a2bc5cfe454b8df6638889409 Mon Sep 17 00:00:00 2001 From: Niko Kurtti Date: Sat, 11 May 2024 12:41:38 +0300 Subject: [PATCH] baseimage --- packages/metrics/Dockerfile | 10 +++++----- ...ckerignore.dockerignore => Dockerfile.dockerignore} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename packages/metrics/{Dockerignore.dockerignore => Dockerfile.dockerignore} (100%) diff --git a/packages/metrics/Dockerfile b/packages/metrics/Dockerfile index 0e054114ac5..7d3a81fdaba 100644 --- a/packages/metrics/Dockerfile +++ b/packages/metrics/Dockerfile @@ -3,14 +3,14 @@ FROM opencrvs/ocrvs-base:${VERSION} USER node -COPY --chown=node:node . . +USER node -RUN yarn install --frozen-lockfile +COPY --chown=node:node packages/commons /app/packages/commons +RUN cd packages/commons && yarn install --frozen-lockfile && yarn build -WORKDIR /app/packages/commons -RUN yarn build +COPY --chown=node:node packages/metrics /app/packages/metrics +RUN cd packages/metrics && yarn install --frozen-lockfile && yarn build WORKDIR /app/packages/metrics -RUN yarn build CMD ["yarn", "start:prod"] \ No newline at end of file diff --git a/packages/metrics/Dockerignore.dockerignore b/packages/metrics/Dockerfile.dockerignore similarity index 100% rename from packages/metrics/Dockerignore.dockerignore rename to packages/metrics/Dockerfile.dockerignore