fix: install backend dependencies in /app for production so nodemailer and others are available at runtime
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user