File tree 4 files changed +389
-358
lines changed
4 files changed +389
-358
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:16-alpine
2
2
3
+
3
4
# * Same version as in Watchtower
4
5
ARG EXPRESS_VERSION=4.18.1
5
6
ENV EXPRESS_VERSION $EXPRESS_VERSION
@@ -29,7 +30,7 @@ RUN apk update && apk upgrade && \
29
30
apk add --no-cache git openssh
30
31
31
32
# * Install packages that are required for this docker image to run
32
- RUN npm install -g pnpm nodemon express@$EXPRESS_VERSION morgan glob tsx @antfu/ni
33
+ RUN npm install -g pnpm nodemon express@$EXPRESS_VERSION morgan glob@8.1.0 tsx @antfu/ni
33
34
34
35
# * The pnpm store should be mounted in the same volume as node_modules (requires hard links)
35
36
# * See https://pnpm.io/6.x/npmrc#store-dir
@@ -40,4 +41,4 @@ COPY nodemon.json start.sh server.ts tsconfig.json $SERVER_PATH/
40
41
41
42
# * Change working directory to the Nhost project directory
42
43
WORKDIR $NHOST_PROJECT_PATH
43
- CMD $SERVER_PATH/start.sh
44
+ ENTRYPOINT $SERVER_PATH/start.sh
Original file line number Diff line number Diff line change 3
3
" !(package.json)"
4
4
],
5
5
"execMap" : {
6
- "json" : " cd $FUNCTIONS_WORKING_DIR ; ni ; nodemon --ext 'js,ts' -w $FUNCTIONS_RELATIVE_PATH -x 'tsx' $SERVER_PATH/server.ts"
6
+ "json" : " cd $FUNCTIONS_WORKING_DIR ; ni ; nodemon -L - -ext 'js,ts' -w $FUNCTIONS_RELATIVE_PATH -x 'tsx' $SERVER_PATH/server.ts"
7
7
},
8
8
"ext" : " json"
9
- }
9
+ }
Original file line number Diff line number Diff line change 22
22
"homepage" : " https://github.com/nhost/functions#readme" ,
23
23
"devDependencies" : {
24
24
"@antfu/ni" : " ^0.17.2" ,
25
- "@swc-node/register" : " ^1.5.1 " ,
26
- "@types/express" : " ^4.17.13 " ,
25
+ "@swc-node/register" : " ^1.6.5 " ,
26
+ "@types/express" : " ^4.17.17 " ,
27
27
"@types/glob" : " ^7.2.0" ,
28
- "@types/morgan" : " ^1.9.3 " ,
29
- "@types/node" : " ^18.7.6 " ,
28
+ "@types/morgan" : " ^1.9.4 " ,
29
+ "@types/node" : " ^18.16.14 " ,
30
30
"express" : " 4.18.1" ,
31
- "glob" : " ^8.0.3 " ,
31
+ "glob" : " ^8.1.0 " ,
32
32
"morgan" : " ^1.10.0" ,
33
- "nodemon" : " ^2.0.19 " ,
34
- "pnpm" : " ^7.9.0 " ,
35
- "typescript" : " ^4.7.4 "
33
+ "nodemon" : " ^2.0.22 " ,
34
+ "pnpm" : " ^7.32.4 " ,
35
+ "typescript" : " ^4.9.5 "
36
36
}
37
37
}
You can’t perform that action at this time.
0 commit comments