File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ # Specify bas image
2+ FROM node:alpine
3+
4+ WORKDIR /usr/app
5+
6+ # Install Dependency
7+ COPY ./package.json ./
8+ RUN npm install
9+ COPY ./ ./
10+ RUN npm run build
11+
12+ # Run command
13+ CMD ["npm" , "run" , "prod" ]
Original file line number Diff line number Diff line change 1+ # Specify bas image
2+ FROM node:alpine
3+
4+ WORKDIR /usr/app
5+
6+ # Install Dependency
7+ COPY ./package.json ./
8+ RUN npm install
9+ COPY ./ ./
10+
11+ # Run command
12+ CMD ["npm", "start"]
Original file line number Diff line number Diff line change 44 "description" : " Node Js basic structure using typescript and able to host with serverless" ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "tsc " : " tsc" ,
7+ "build " : " tsc" ,
88 "dev" : " ts-node-dev --respawn --transpileOnly ./server.ts" ,
99 "prod" : " tsc && node ./build/server.js"
1010 },
You can’t perform that action at this time.
0 commit comments