From 04c236f9e3b9c46ed59d3774b1d17678e0b85a07 Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Mon, 22 Jun 2026 00:06:25 +0000 Subject: [PATCH] feat: update backend Dockerfile for Node.js app --- backend/Dockerfile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 3b4c79d..e640546 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,23 +1,13 @@ -# Use Node.js 22 LTS as base image FROM node:22-alpine -# Set working directory WORKDIR /app -# Copy package files COPY package*.json ./ +RUN npm ci --only=production -# Install dependencies -RUN npm ci - -# Copy source code COPY . . - -# Build the application RUN npm run build -# Expose port 3001 EXPOSE 3001 -# Run the application -CMD ["npm", "start"] \ No newline at end of file +CMD ["node", "dist/index.js"] \ No newline at end of file