feat(docker): add non-root user, labels, and healthcheck (closes #433)

Now works with Pterodactyl.
This commit is contained in:
Isaac
2023-06-15 00:21:52 +01:00
parent faddacc6df
commit bd42781878
5 changed files with 27 additions and 6 deletions

6
src/routes/status.js Normal file
View File

@@ -0,0 +1,6 @@
module.exports.get = () => ({
handler: async (req, res) => {
const { status } = res.context.config.client.ws;
res.code(status === 0 ? 200 : 425).send(status);
},
});