yes
This commit is contained in:
parent
3e45a3a863
commit
359961a205
@ -10,8 +10,6 @@ COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
|||||||
# Copy cached files
|
# Copy cached files
|
||||||
COPY node_modules ./
|
COPY node_modules ./
|
||||||
|
|
||||||
RUN npm i
|
|
||||||
|
|
||||||
# RUN \
|
# RUN \
|
||||||
# if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
# if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
||||||
# elif [ -f package-lock.json ]; then npm ci; \
|
# 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/.next/static ./.next/static
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/public ./.next/static
|
COPY --from=builder --chown=nextjs:nodejs /app/public ./.next/static
|
||||||
|
|
||||||
|
RUN npm i
|
||||||
|
|
||||||
RUN chown -R nextjs:nodejs /app
|
RUN chown -R nextjs:nodejs /app
|
||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
|
Reference in New Issue
Block a user