Merge pull request #602 from Hexastack/fix/optimize-docker-frontend-caching
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run

fix: optimize docker frontend cache
This commit is contained in:
Med Marrouchi
2025-01-23 11:18:34 +01:00
committed by GitHub

View File

@@ -47,10 +47,15 @@ WORKDIR /app
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
COPY frontend/package*.json ./frontend/
COPY widget/package*.json ./widget/
RUN npm install
COPY ./frontend ./frontend
COPY ./widget ./widget
RUN npm install
# used to by pass Next.js paching lock file