mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Merge pull request #206 from hugomd/fix/use-frozen-lockfile
Re-add usage of frozen lockfile when installing dependencies with yarn
This commit is contained in:
commit
3d49017193
1 changed files with 3 additions and 3 deletions
|
|
@ -8,13 +8,13 @@ WORKDIR /build
|
|||
COPY package.json yarn.lock /build/
|
||||
|
||||
# Install only the production dependencies
|
||||
RUN yarn install --production
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
# Cache these modules for production
|
||||
RUN cp -R node_modules/ prod_node_modules/
|
||||
|
||||
# Install development dependencies
|
||||
RUN yarn install
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY . /build
|
||||
RUN yarn build
|
||||
|
|
@ -27,7 +27,7 @@ WORKDIR /app
|
|||
COPY --from=build /build/prod_node_modules ./node_modules
|
||||
|
||||
# Copy generated Prisma client
|
||||
COPY --from=build /build/node_modules/\.prisma/ ./node_modules/\.prisma/
|
||||
COPY --from=build /build/node_modules/.prisma/ ./node_modules/.prisma/
|
||||
|
||||
COPY --from=build /build/yarn.lock /build/package.json ./
|
||||
COPY --from=build /build/.next ./.next
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue