16 lines
		
	
	
		
			284 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			284 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM node:24-slim AS builder
 | 
						|
WORKDIR /app
 | 
						|
COPY package*.json ./
 | 
						|
RUN npm install
 | 
						|
COPY . .
 | 
						|
RUN npm run build
 | 
						|
 | 
						|
FROM node:24-slim AS production
 | 
						|
WORKDIR /app
 | 
						|
COPY package*.json ./
 | 
						|
RUN npm install --production
 | 
						|
COPY --from=builder /app/dist ./dist
 | 
						|
EXPOSE 3000
 | 
						|
CMD ["node", "dist/index.js"]
 | 
						|
 |