Logo
Explore Help
Register Sign In
matt/website
1
0
Fork 0
You've already forked website
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
main
website/docker-entrypoint.sh

9 lines
133 B
Bash
Raw Permalink Normal View History

fix: resolve Docker container startup error with entrypoint script - Created docker-entrypoint.sh script to properly start Next.js server - Script explicitly changes to /app directory and runs node server.js - Updated Dockerfile to copy and use the entrypoint script - This fixes the "Cannot find module '/server.js'" error - Makes deployment more robust against container orchestration overrides The container now has a proper entrypoint that Portainer expects and correctly starts the Next.js standalone server. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-26 20:02:50 +02:00
#!/bin/sh
set -e
# Change to app directory
cd /app
# Start the Next.js server
echo "Starting Next.js server..."
exec node server.js
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 29ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API