Skip to content

Commit

Permalink
feat: change building workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
insthync committed Dec 29, 2023
1 parent 81cab02 commit b2eb3c8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app

COPY package*.json ./
COPY src ./src
COPY prisma ./prisma
COPY tsconfig.json ./tsconfig.json

USER root

RUN npm install

COPY --chown=node:node . .
RUN npx prisma generate --schema "./prisma/auctionSchema.prisma"
RUN npx prisma generate --schema "./prisma/mailSchema.prisma"
RUN npm run build
RUN rm -rf ./src

EXPOSE 80

Expand Down

0 comments on commit b2eb3c8

Please sign in to comment.