mirror of
https://github.com/louislam/dockge.git
synced 2024-11-23 19:34:04 +00:00
Workaround
This commit is contained in:
parent
051cc11eaa
commit
2099ab6153
2 changed files with 14 additions and 1 deletions
|
@ -26,7 +26,7 @@ VOLUME /app/data
|
|||
EXPOSE 5001
|
||||
HEALTHCHECK --interval=60s --timeout=30s --start-period=60s --retries=5 CMD extra/healthcheck
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
CMD ["tsx", "./backend/index.ts"]
|
||||
CMD ["bash", "-c", "node ./extra/clean-tsx-tmp.js && tsx ./backend/index.ts"]
|
||||
|
||||
############################################
|
||||
# Mark as Nightly
|
||||
|
|
13
extra/clean-tsx-tmp.js
Normal file
13
extra/clean-tsx-tmp.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* This script is used to clean up the tmp directory.
|
||||
* A workaround for https://github.com/louislam/dockge/issues/353
|
||||
*/
|
||||
import * as fs from "fs";
|
||||
|
||||
try {
|
||||
fs.rmSync("/tmp/tsx-0", {
|
||||
recursive: true,
|
||||
});
|
||||
} catch (e) {
|
||||
|
||||
}
|
Loading…
Reference in a new issue