Revert "reorder script dependency order"
This reverts commit 75a9041fad.
This commit is contained in:
+6
-6
@@ -41,6 +41,12 @@ RUN adduser --system --uid 1001 nextjs
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk add --no-cache curl
|
&& apk add --no-cache curl
|
||||||
|
|
||||||
|
# Script dependencies
|
||||||
|
RUN npm install --no-save npm-run-all dotenv chalk semver \
|
||||||
|
prisma@${PRISMA_VERSION} \
|
||||||
|
@prisma/client@${PRISMA_VERSION} \
|
||||||
|
@prisma/adapter-pg@${PRISMA_VERSION}
|
||||||
|
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
|
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
|
||||||
COPY --from=builder /app/prisma ./prisma
|
COPY --from=builder /app/prisma ./prisma
|
||||||
COPY --from=builder /app/prisma.config.ts ./prisma.config.ts
|
COPY --from=builder /app/prisma.config.ts ./prisma.config.ts
|
||||||
@@ -52,12 +58,6 @@ COPY --from=builder /app/generated ./generated
|
|||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
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
|
||||||
|
|
||||||
# Script dependencies
|
|
||||||
RUN npm install --no-save npm-run-all dotenv chalk semver \
|
|
||||||
prisma@${PRISMA_VERSION} \
|
|
||||||
@prisma/client@${PRISMA_VERSION} \
|
|
||||||
@prisma/adapter-pg@${PRISMA_VERSION}
|
|
||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user