From f1b3d2e136e1f47033ab9060137aec407a7c2b32 Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Sun, 21 Jun 2026 20:33:37 +0000 Subject: [PATCH] T01: update backend Dockerfile --- backend/Dockerfile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 441b38e..3b4c79d 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,13 +1,23 @@ +# Use Node.js 22 LTS as base image FROM node:22-alpine -RUN apk add --no-cache curl +# 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 . . -EXPOSE 5000 +# Build the application +RUN npm run build -CMD ["node", "server.js"] +# Expose port 3001 +EXPOSE 3001 + +# Run the application +CMD ["npm", "start"] \ No newline at end of file