fix: add HOSTNAME=0.0.0.0 to start.sh for proper port binding in Docker
Deploy Staging / build (push) Failing after 46s
Deploy Staging / build (push) Failing after 46s
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ RUN chown -R nextjs:nodejs /app/node_modules/@prisma /app/node_modules/prisma /a
|
|||||||
RUN printf '#!/bin/sh\n\
|
RUN printf '#!/bin/sh\n\
|
||||||
cd /app\n\
|
cd /app\n\
|
||||||
node ./node_modules/prisma/build/index.js db push --skip-generate --accept-data-loss 2>&1\n\
|
node ./node_modules/prisma/build/index.js db push --skip-generate --accept-data-loss 2>&1\n\
|
||||||
exec node server.js\n' > /app/start.sh && chmod +x /app/start.sh
|
# Force 0.0.0.0 binding (Docker sets HOSTNAME to container ID)\nexport HOSTNAME=0.0.0.0\nexec node server.js\n' > /app/start.sh && chmod +x /app/start.sh
|
||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user