Reduce number of seeded users for faster start
This commit is contained in:
@ -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"]
|
||||
|
@ -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',
|
||||
|
Reference in New Issue
Block a user