diff --git a/Dockerfile b/Dockerfile index 7b8e1b6..bba75f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -122,37 +122,8 @@ COPY infra/server-start.sh /app/server-start.sh RUN chmod +x /app/server-start.sh RUN chown palmr:nodejs /app/server-start.sh -# Copy supervisor configuration (updated paths) -COPY </dev/null 2>&1; do echo "API not ready, waiting..."; sleep 2; done; echo "API is ready! Starting frontend..."; exec node server.js' -directory=/app/web -user=palmr -autostart=true -autorestart=true -stderr_logfile=/var/log/supervisor/web.err.log -stdout_logfile=/var/log/supervisor/web.out.log -environment=PORT=5487,HOSTNAME="0.0.0.0",HOME="/home/palmr",API_BASE_URL="http://127.0.0.1:3333" -priority=200 -startsecs=10 -EOF +# Copy supervisor configuration +COPY infra/supervisord.conf /etc/supervisor/conf.d/supervisord.conf # Create main startup script COPY </dev/null 2>&1; do echo "API not ready, waiting..."; sleep 2; done; echo "API is ready! Starting frontend..."; exec node server.js' +directory=/app/web +user=palmr +autostart=true +autorestart=true +stderr_logfile=/var/log/supervisor/web.err.log +stdout_logfile=/var/log/supervisor/web.out.log +environment=PORT=5487,HOSTNAME="0.0.0.0",HOME="/home/palmr",API_BASE_URL="http://127.0.0.1:3333" +priority=200 +startsecs=10 \ No newline at end of file