This commit is contained in:
Liam 2022-10-29 16:13:45 +01:00
parent 3e45a3a863
commit 359961a205

View File

@ -10,8 +10,6 @@ COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
# Copy cached files
COPY node_modules ./
RUN npm i
# RUN \
# if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
# elif [ -f package-lock.json ]; then npm ci; \
@ -53,6 +51,8 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/public ./.next/static
RUN npm i
RUN chown -R nextjs:nodejs /app
USER nextjs