Reduce number of seeded users for faster start

This commit is contained in:
Mike Conrad
2025-06-11 17:47:51 -04:00
parent 8327d34708
commit 87e8758e40
4 changed files with 5 additions and 7 deletions

View File

@ -11,6 +11,7 @@ RUN npm ci
FROM deps AS develop
WORKDIR /app
COPY dev-entrypoint.sh /entrypoint.sh
COPY .env.example /app/.env
RUN chmod +x /entrypoint.sh
RUN cat /entrypoint.sh
ENV NODE_ENV=development
@ -38,4 +39,4 @@ COPY --from=production-deps /app/node_modules /app/node_modules
COPY --from=build /app/build /app
EXPOSE 8080
CMD ["node", "./bin/server.js"]
CMD ["node", "./bin/server.js"]

View File

@ -9,7 +9,7 @@ export default class extends BaseSeeder {
console.log('Database already seeded, skipping...')
return
}
const users = Array.from({ length: 1000 }).map(() => ({
const users = Array.from({ length: 200 }).map(() => ({
fullName: faker.person.fullName(),
email: faker.internet.email(),
password: 'password123',