dockerfile: cachear deps

This commit is contained in:
Cat /dev/Nulo 2024-01-24 18:49:43 -03:00
parent 7ccc2432e3
commit dbbd8e7f3a

View file

@ -4,6 +4,10 @@ WORKDIR /usr/src/app
FROM base as build
RUN apk add --no-cache nodejs npm
RUN npm install --global pnpm
COPY db-datos/package.json db-datos/package.json
COPY sitio/package.json sitio/package.json
COPY pnpm-lock.yaml pnpm-workspace.yaml .
RUN cd sitio && pnpm install
COPY . .
COPY db-datos/drizzle .
RUN cd sitio && \