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