File tree Expand file tree Collapse file tree 4 files changed +41
-9
lines changed Expand file tree Collapse file tree 4 files changed +41
-9
lines changed Original file line number Diff line number Diff line change 25
25
"module" : " commonjs" , /* Specify what module code is generated. */
26
26
"rootDir" : " ./src" , /* Specify the root folder within your source files. */
27
27
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
28
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
28
+ "baseUrl" : " ." , /* Specify the base directory to resolve non-relative module names. */
29
+ "paths" : {
30
+ "@/*" : [" ./src/*" ]
31
+ }, /* Specify a set of entries that re-map imports to additional lookup locations. */
30
32
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
31
33
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
32
34
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
100
102
},
101
103
"exclude" : [
102
104
" drizzle.*.*ts"
103
- ]
105
+ ],
106
+ "ts-node" : {
107
+ "swc" : true ,
108
+ "require" : [" tsconfig-paths/register" ]
109
+ }
104
110
}
Original file line number Diff line number Diff line change 25
25
"module" : " commonjs" , /* Specify what module code is generated. */
26
26
"rootDir" : " ./src" , /* Specify the root folder within your source files. */
27
27
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
28
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
28
+ "baseUrl" : " ." , /* Specify the base directory to resolve non-relative module names. */
29
+ "paths" : {
30
+ "@/*" : [" ./src/*" ]
31
+ }, /* Specify a set of entries that re-map imports to additional lookup locations. */
30
32
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
31
33
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
32
34
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
100
102
},
101
103
"exclude" : [
102
104
" drizzle.*.*ts"
103
- ]
105
+ ],
106
+ "ts-node" : {
107
+ "swc" : true ,
108
+ "require" : [" tsconfig-paths/register" ]
109
+ }
104
110
}
Original file line number Diff line number Diff line change
1
+ FROM node:lts-alpine AS build
2
+ WORKDIR /data/user-express
3
+ COPY package*.json ./
4
+ RUN npm install
5
+ COPY . .
6
+ RUN npm run build
7
+
8
+ FROM node:lts-alpine AS production
9
+ WORKDIR /data/user-express
10
+ COPY --from=build /data/user-express/package*.json ./
11
+ RUN npm ci --omit=dev
12
+ COPY --from=build --chown=node:node /data/user-express/dist ./dist
13
+ EXPOSE 8001
14
+ ENTRYPOINT ["node" , "dist/index.js" ]
Original file line number Diff line number Diff line change 25
25
"module" : " commonjs" , /* Specify what module code is generated. */
26
26
"rootDir" : " ./src" , /* Specify the root folder within your source files. */
27
27
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
28
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
28
+ "baseUrl" : " ." , /* Specify the base directory to resolve non-relative module names. */
29
+ "paths" : {
30
+ "@/*" : [" ./src/*" ]
31
+ }, /* Specify a set of entries that re-map imports to additional lookup locations. */
30
32
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
31
33
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
32
34
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
100
102
},
101
103
"exclude" : [
102
104
" drizzle.*.*ts"
103
- ]
105
+ ],
106
+ "ts-node" : {
107
+ "swc" : true ,
108
+ "require" : [" tsconfig-paths/register" ]
109
+ }
104
110
}
You can’t perform that action at this time.
0 commit comments