forked from noxious/server
Build fix attempt
This commit is contained in:
parent
cf3b274cd3
commit
4ace8c1e84
@ -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"]
|
@ -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
|
||||
|
@ -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/",
|
||||
|
@ -14,6 +14,10 @@
|
||||
"skipLibCheck": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
// Output
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"#application/*": ["./src/application/*"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user