Skip to content

Commit

Permalink
Update Dockerfile to include source code in the production image
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Jun 2, 2024
1 parent 04e4812 commit 4284606
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ FROM node:21 as builder

WORKDIR /opt/lavamusic/



# Copy package files and install dependencies
COPY package*.json ./
# Copy source code
COPY source ./source

RUN apt update
RUN apt install openssl -y
Expand Down Expand Up @@ -36,6 +40,8 @@ WORKDIR /opt/lavamusic/
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 --from=builder /opt/lavamusic/source ./source

# Copy package files and install production dependencies
COPY package*.json ./

Expand Down

0 comments on commit 4284606

Please sign in to comment.