fix: install backend dependencies in /app for production so nodemailer and others are available at runtime

This commit is contained in:
Ryderjj89
2025-05-05 09:56:35 -04:00
parent 866bdbebc2
commit 908b0f21ef

View File

@@ -36,11 +36,9 @@ RUN mkdir -p /app/uploads/wallpapers && \
chmod 755 /app/uploads && \ chmod 755 /app/uploads && \
chmod 644 /app/database.sqlite chmod 644 /app/database.sqlite
# Copy package files and install dependencies # Copy backend package files and install dependencies
COPY package*.json ./ COPY backend/package*.json ./
COPY backend/package*.json ./backend/
RUN npm install --production RUN npm install --production
RUN cd backend && npm install --production
# Copy built files from builder stage # Copy built files from builder stage
COPY --from=builder /app/backend/dist ./dist COPY --from=builder /app/backend/dist ./dist