Add static context
All checks were successful
Publish Docker image / Push Docker image to Docker Hub (push) Successful in 1m12s
All checks were successful
Publish Docker image / Push Docker image to Docker Hub (push) Successful in 1m12s
This commit is contained in:
parent
d98dceee75
commit
77e71412d7
@ -27,4 +27,4 @@ ENV NODE_ENV=production
|
||||
USER node
|
||||
EXPOSE 5287
|
||||
|
||||
CMD ["node", "server/index.js"]
|
||||
CMD ["node", "index.js"]
|
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user