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

@@ -32,11 +32,12 @@ COPY . .
# Build the application for production
RUN npm run build
# Create the default admin account
RUN node scripts/create-admin.js
# Copy the entrypoint script
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Expose the default Next.js port
EXPOSE 3000
# Start the production server
CMD ["npm", "start"]
# Use the entrypoint script
ENTRYPOINT ["/docker-entrypoint.sh"]