Skip to content

Commit

Permalink
Workaround fix for tsx issue (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam authored Jan 18, 2024
1 parent 051cc11 commit 66747b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions extra/clean-tsx-tmp.js
Original file line number Diff line number Diff line change
@@ -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) {

}

0 comments on commit 66747b7

Please sign in to comment.