File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ FROM node:18-alpine AS base
33
44# Install pnpm globally
55RUN npm install -g pnpm
6+ RUN npm install -g typescript
67
78# Set the working directory in the container
89WORKDIR /app
@@ -22,7 +23,6 @@ COPY tsconfig.json ./
2223
2324CMD ["pnpm" , "dev" ]
2425
25-
2626# Production stage
2727FROM base AS production
2828ENV NODE_ENV=production
@@ -33,4 +33,6 @@ COPY tsconfig.json ./
3333
3434EXPOSE ${PORT}
3535
36+ RUN pnpm build
37+
3638CMD ["pnpm" , "start" ]
Original file line number Diff line number Diff line change 55 "main" : " index.js" ,
66 "scripts" : {
77 "dev" : " nodemon --exec ts-node src/app.ts" ,
8- "start" : " tsc && node dist/app.js" ,
8+ "start" : " node dist/app.js" ,
99 "build" : " tsc" ,
1010 "format" : " prettier --write \" src/**/*.ts\" " ,
1111 "test" : " echo \" Error: no test specified\" && exit 1" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ app.use(express.json());
1717app . use ( cors ( ) ) ; // configured so any one can use
1818app . options ( '*' , cors ( ) ) ;
1919
20- // Health check route
20+ // Health check route, redeploy
2121app . get ( '/' , ( req , res ) => {
2222 res . status ( 200 ) . send ( 'OK' ) ;
2323} ) ;
You can’t perform that action at this time.
0 commit comments