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 a64c1a8 commit 4b02d39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ 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/guildWarSchema.prisma"
RUN npm run build
RUN rm -rf ./src

EXPOSE 80

Expand Down

0 comments on commit 4b02d39

Please sign in to comment.