This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ COPY server-package.json package.json
24
24
# Copy TypeScript build artifacts into the original directory structure.
25
25
RUN ls
26
26
RUN cp -R build/src/* src/.
27
+
28
+ # Copy the healthcheck
29
+ RUN cp build/docker_healthcheck.js .
30
+ RUN rm docker_healthcheck.ts
31
+
27
32
RUN rm -r build
28
33
29
34
# Install app dependencies
Original file line number Diff line number Diff line change 1
- const http = require ( "http" ) ;
2
- const ini = require ( "ini" ) ;
3
- const fs = require ( "fs" ) ;
4
- const dataDir = require ( './src/services/data_dir' ) ;
1
+ import http from "http" ;
2
+ import ini from "ini" ;
3
+ import fs from "fs" ;
4
+ import dataDir from './src/services/data_dir.js' ;
5
5
const config = ini . parse ( fs . readFileSync ( dataDir . CONFIG_INI_PATH , 'utf-8' ) ) ;
6
6
7
7
if ( config . Network . https ) {
@@ -10,12 +10,12 @@ if (config.Network.https) {
10
10
process . exit ( 0 ) ;
11
11
}
12
12
13
- const port = require ( './src/services/port' ) ;
14
- const host = require ( './src/services/host' ) ;
13
+ import port from './src/services/port.js' ;
14
+ import host from './src/services/host.js' ;
15
15
16
- const options = { timeout : 2000 } ;
16
+ const options : http . RequestOptions = { timeout : 2000 } ;
17
17
18
- const callback = res => {
18
+ const callback : ( res : http . IncomingMessage ) => void = res => {
19
19
console . log ( `STATUS: ${ res . statusCode } ` ) ;
20
20
if ( res . statusCode === 200 ) {
21
21
process . exit ( 0 ) ;
You can’t perform that action at this time.
0 commit comments