feat: Update Docker entrypoint scripts to create admin account on container startup

This commit is contained in:
2025-07-28 22:00:47 +02:00
parent 225d16c1c9
commit 764f6d1100
7 changed files with 54 additions and 16 deletions

View File

@@ -16,11 +16,12 @@ RUN npm install
# Copy the rest of the app
COPY . .
# Create the default admin account for development
RUN node scripts/create-admin.js
# Copy the development entrypoint script
COPY docker-entrypoint-dev.sh /docker-entrypoint-dev.sh
RUN chmod +x /docker-entrypoint-dev.sh
# Expose the default Next.js port
EXPOSE 3000
# Start the dev server
CMD ["npm", "run", "dev"]
# Use the development entrypoint script
ENTRYPOINT ["/docker-entrypoint-dev.sh"]