Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lvax committed Oct 10, 2024
1 parent c3939e1 commit 77c143b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN npm install -g pnpm
COPY package*.json ./
RUN pnpm install

# Install prisma
# Copy Prisma files and generate
COPY prisma ./prisma
RUN npx prisma generate

# Copy the rest of the files and build the application
Expand All @@ -26,11 +27,12 @@ WORKDIR /app
# Copy necessary files from builder stage
COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/
COPY --from=builder /app/prisma prisma/ # Copy Prisma files
COPY package.json .

# Set the environment and expose the port
EXPOSE 3000
ENV NODE_ENV=production

# Command to run the application
CMD [ "node", "build" ]
CMD [ "node", "build" ]

0 comments on commit 77c143b

Please sign in to comment.