1
0
forked from noxious/server

Build fix attempt

This commit is contained in:
Dennis Postma 2025-02-07 01:48:42 +01:00
parent cf3b274cd3
commit 4ace8c1e84
4 changed files with 9 additions and 5 deletions

View File

@ -26,8 +26,8 @@ RUN npm run build
EXPOSE 80 6379 3306
# Copy and make the startup script executable
COPY docker-start.sh /usr/src/start.sh
RUN chmod +x /usr/src/start.sh
COPY docker-start.sh /usr/src/dist/start.sh
RUN chmod +x /usr/src/dist/start.sh
# Use the shell script as the entry point
CMD ["/usr/src/start.sh"]
CMD ["/usr/src/dist/start.sh"]

View File

@ -17,7 +17,7 @@ echo "MySQL is ready!"
npx mikro-orm migration:up
# Start the Node.js application in a tmux session
tmux new-session -d -s nodeapp "node src/server.js"
tmux new-session -d -s nodeapp "npm run start"
echo "App is running in tmux session. Attach with: tmux attach-session -t nodeapp"
# Keep container running

View File

@ -1,6 +1,6 @@
{
"scripts": {
"start": "node src/server.js",
"start": "node --experimental-specifier-resolution=node dist/server.js",
"dev": "nodemon --exec tsx src/server.ts",
"build": "tsc",
"format": "prettier --write src/",

View File

@ -14,6 +14,10 @@
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Output
"outDir": "./dist",
"rootDir": "./src",
"baseUrl": ".",
"paths": {
"#application/*": ["./src/application/*"],