Skip to content

Commit

Permalink
Merge pull request #81 from donghquinn/dev
Browse files Browse the repository at this point in the history
wip: deploy
  • Loading branch information
donghquinn authored Mar 14, 2024
2 parents f9f138b + 6e3b9c7 commit 604ba85
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ FROM node:20.3-alpine3.17 AS base

WORKDIR /usr/src/app

COPY yarn.lock .yarnrc.yml /usr/src/app/
COPY yarn.lock .yarnrc.yml /usr/src/app/
COPY package-deploy.json ./package.json

COPY .yarn /usr/src/app/.yarn

RUN yarn install
Expand All @@ -16,7 +15,6 @@ WORKDIR /usr/src/app

# COPY --from=base /usr/src/app/node_modules /usr/src/app/node_modules
COPY --from=base /usr/src/app/node_modules /usr/src/app/node_modules
COPY --from=base /usr/src/app/package.json ./package.json
COPY src /usr/src/app/src
COPY prisma /usr/src/app/prisma
COPY tsconfig.json /usr/src/app/tsconfig.json
Expand All @@ -31,10 +29,11 @@ FROM node:20.3-alpine3.17 AS release

WORKDIR /home/node

COPY --from=build /usr/src/app/package.json ./package.json
COPY package-deploy.json /home/node/package.json
COPY --from=build /usr/src/app/prisma /home/node/prisma
COPY --from=build /usr/src/app/node_modules /home/node/node_modules
COPY --from=build /usr/src/app/dist /home/node/src
COPY tsconfig.json /home/node/tsconfig.json

ENV NODE_ENV=production

Expand Down

0 comments on commit 604ba85

Please sign in to comment.