Skip to content

Commit

Permalink
fix Docker image not starting up properly
Browse files Browse the repository at this point in the history
fix docker image not starting up properly due to prisma errors

Signed-off-by: Chokun Rojanapron <[email protected]>
  • Loading branch information
Chokun Rojanapron authored Dec 6, 2023
1 parent 874cf60 commit f009599
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ ENV NODE_ENV production

WORKDIR /opt/lavamusic/

# Copy compiled code
COPY --from=builder /opt/lavamusic/dist ./dist
COPY --from=builder /opt/lavamusic/src/utils/LavaLogo.txt ./src/utils/LavaLogo.txt
COPY --from=builder /opt/lavamusic/prisma ./prisma

# Copy package files and install dependencies
COPY package*.json ./
RUN apt-get update && \
Expand All @@ -33,9 +38,4 @@ RUN apt-get update && \

RUN npx prisma generate

# Copy compiled code
COPY --from=builder /opt/lavamusic/dist ./dist
COPY --from=builder /opt/lavamusic/src/utils/LavaLogo.txt ./src/utils/LavaLogo.txt
COPY --from=builder /opt/lavamusic/prisma ./prisma

CMD [ "node", "dist/index.js" ]

0 comments on commit f009599

Please sign in to comment.