File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ RUN npm run build
2424
2525RUN npm run init
2626
27+ RUN npm run link
28+
2729EXPOSE 3000
2830
2931CMD ["npm" , "run" , "start" ]
Original file line number Diff line number Diff line change 1616 "node" : " >=16.15.0"
1717 },
1818 "scripts" : {
19- "build" : " tsc -b ; rm -rf lib/icons ; ln -s ../icons lib/icons" ,
19+ "build" : " tsc -b" ,
20+ "link" : " mkdir -p icons cache ; rm -rf lib/icons ; ln -s ../icons lib/icons ; rm -rf lib/cache ; ln -s ../cache lib/cache" ,
2021 "test" : " vitest --config vitest.config.mjs" ,
2122 "init" : " node --expose-gc lib/start-init.js" ,
2223 "start" : " node --expose-gc lib/index.js" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const appConfig: AppConfig = {
1919
2020 // Host and port for server
2121 host : '0.0.0.0' ,
22- port : 3000 ,
22+ port : process . env . PORT ? parseInt ( process . env . PORT ) : 3000 ,
2323
2424 // Log stuff
2525 log : true ,
You can’t perform that action at this time.
0 commit comments