Skip to content

Commit

Permalink
Merge pull request #8 from boaz-baekjoon/feat/6-connect-problem-to-db
Browse files Browse the repository at this point in the history
Hotfix: configure dockerfile for typescript compile (#6)
  • Loading branch information
synoti21 authored Dec 28, 2023
2 parents b918308 + b95434d commit 3100c6f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
FROM node:18
FROM node:18 as builder

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 80

RUN tsc

FROM node:18

WORKDIR /app

COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist

CMD ["npm", "start"]

0 comments on commit 3100c6f

Please sign in to comment.