Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
infnibor committed Jun 29, 2024
1 parent 1ce3712 commit 15bf89f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ WORKDIR /opt/lavamusic/
# Copy package files and install dependencies
COPY package*.json ./

RUN apt update && apt install -y openssl
# Install necessary tools and update npm
RUN apt-get update && apt-get install -y openssl git \
&& npm install -g npm@latest

RUN npm install
RUN npm config set global --legacy-peer-deps
Expand All @@ -30,18 +32,17 @@ ENV NODE_ENV=production

WORKDIR /opt/lavamusic/

# Copy compiled code
# Install necessary tools
RUN apt-get update && apt-get install -y openssl

# Copy compiled code and other necessary files from the builder stage
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/scripts ./scripts
COPY --from=builder /opt/lavamusic/package*.json ./

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

RUN apt update && apt install -y openssl

RUN npm install --only=production
RUN npm install --omit=dev

RUN npx prisma generate
RUN npx prisma db push
Expand Down

0 comments on commit 15bf89f

Please sign in to comment.