Skip to content

Commit

Permalink
Merge pull request #489 from ChokunPlayZ/main
Browse files Browse the repository at this point in the history
fix Docker image not starting up properly
  • Loading branch information
appujet authored Dec 6, 2023
2 parents 874cf60 + f009599 commit 1ef2199
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 1ef2199

Please sign in to comment.