feat: Update Docker entrypoint scripts to create admin account on container startup
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user