Add static context
All checks were successful
Publish Docker image / Push Docker image to Docker Hub (push) Successful in 1m12s

This commit is contained in:
Mathias Wagner 2025-02-27 21:37:59 +01:00
parent d98dceee75
commit 77e71412d7
2 changed files with 6 additions and 1 deletions

View File

@ -27,4 +27,4 @@ ENV NODE_ENV=production
USER node
EXPOSE 5287
CMD ["node", "server/index.js"]
CMD ["node", "index.js"]

View File

@ -2,6 +2,11 @@ const express = require("express");
const { Server } = require("socket.io");
const http = require("http");
const app = express();
const path = require("path");
app.use(express.static(path.join(__dirname, './dist')));
app.get('*', (req, res) => res.sendFile(path.join(__dirname, './dist', 'index.html')));
app.disable("x-powered-by");