fix dockerfile to run pm2

(cherry picked from commit ad0b564e170119628037b4bb13f689eb5629d041)
This commit is contained in:
tim-hub 2023-08-31 19:37:07 +12:00
parent a12a60f86c
commit 28fc70e63a

View file

@ -35,7 +35,7 @@ ENV NEXT_TELEMETRY_DISABLED 1
RUN addgroup --system --gid 1001 nodejs RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs
RUN yarn add npm-run-all dotenv prisma RUN yarn add npm-run-all dotenv prisma pm2
# You only need to copy next.config.js if you are NOT using the default configuration # You only need to copy next.config.js if you are NOT using the default configuration
COPY --from=builder /app/next.config.js . COPY --from=builder /app/next.config.js .