7
Some checks failed
Deploy Frontend / deploy (push) Failing after 53s

This commit is contained in:
Lee 2024-10-04 18:00:46 +01:00
parent 1f7652863b
commit 7545ee2066

@ -43,6 +43,8 @@ ENV GIT_REV=${GIT_REV}
EXPOSE 3000 EXPOSE 3000
RUN pnpm install
# Don't run production as root # Don't run production as root
RUN addgroup --system --gid 1001 nodejs RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs
@ -50,7 +52,6 @@ USER nextjs
# Automatically leverage output traces to reduce image size # Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing # https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=installer --chown=nextjs:nodejs /app/apps/frontend/node_modules ./apps/frontend/node_modules
COPY --from=installer --chown=nextjs:nodejs /app/apps/frontend/.next/standalone ./apps/frontend COPY --from=installer --chown=nextjs:nodejs /app/apps/frontend/.next/standalone ./apps/frontend
COPY --from=installer --chown=nextjs:nodejs /app/apps/frontend/.next/static ./apps/frontend/.next/static COPY --from=installer --chown=nextjs:nodejs /app/apps/frontend/.next/static ./apps/frontend/.next/static
COPY --from=installer --chown=nextjs:nodejs /app/apps/frontend/public ./apps/frontend/public COPY --from=installer --chown=nextjs:nodejs /app/apps/frontend/public ./apps/frontend/public