expose port to hapi server in dockerfile

FROM ubuntu:20.04
...
CMD ["node", "main.js"]
FROM ubuntu:20.04
...
CMD ["node", "main.js"]
5 Replies
Percy
Percy2y ago
Project ID: N/A
darkness___.
darkness___.OP2y ago
N/A
Brody
Brody2y ago
there's no need for the EXPOSE keyword in a dockerfile designed to run on railway, all your app needs to do is listen on host 0.0.0.0 and environment variable PORT
darkness___.
darkness___.OP2y ago
ok
Want results from more Discord servers?
Add your server