File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,24 @@ RUN apk add --no-cache npm
5
5
6
6
WORKDIR /app
7
7
8
- COPY package.json ./
8
+ COPY ./backend/ package.json ./
9
9
RUN npm install
10
10
11
- COPY . .
12
- COPY ./shared ./shared
13
-
11
+ COPY ./backend ./
12
+ COPY ./shared ../shared
14
13
RUN npm run build
15
14
16
- # Stage 2: Run
15
+ # # Stage 2: Run
17
16
FROM node:22-alpine
18
17
RUN apk add --no-cache npm
19
18
20
19
WORKDIR /app
21
20
22
- COPY --from=build /app ./
21
+ COPY --from=build /app/dist ./dist
22
+ COPY --from=build /app/node_modules ./node_modules
23
+ COPY --from=build /app/package-lock.json ./package-lock.json
24
+ COPY --from=build /app/package.json ./package.json
23
25
24
26
EXPOSE 3000
25
27
26
- CMD ["npm", "run", "start"]
28
+ CMD ["npm","run","start"]
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"dev" : " nodemon" ,
9
9
"build" : " tsc && tsc-alias" ,
10
- "start" : " node dist/src/index.js" ,
10
+ "start" : " node ./ dist/app /src/index.js" ,
11
11
"lint" : " eslint src --ext .ts,.tsx" ,
12
12
"lint:fix" : " eslint src --ext .ts,.tsx --fix"
13
13
},
You can’t perform that action at this time.
0 commit comments