From f00959910b0d8bfe00b5bec1e21cd2320c0a87e3 Mon Sep 17 00:00:00 2001 From: Chokun Rojanapron Date: Wed, 6 Dec 2023 22:09:05 +0700 Subject: [PATCH] fix Docker image not starting up properly fix docker image not starting up properly due to prisma errors Signed-off-by: Chokun Rojanapron --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c27f32644..6ee087fc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ @@ -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" ]