mirror of https://github.com/btahir/next-beats
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			343 B
		
	
	
	
		
			Docker
		
	
			
		
		
	
	
			24 lines
		
	
	
		
			343 B
		
	
	
	
		
			Docker
		
	
# Use Node.js LTS version
 | 
						|
FROM node:20-alpine
 | 
						|
 | 
						|
# Set working directory
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
# Copy package files
 | 
						|
COPY package*.json ./
 | 
						|
 | 
						|
# Install dependencies
 | 
						|
RUN npm install
 | 
						|
 | 
						|
# Copy project files
 | 
						|
COPY . .
 | 
						|
 | 
						|
# Build the Next.js application
 | 
						|
RUN npm run build
 | 
						|
 | 
						|
# Expose the port the app runs on
 | 
						|
EXPOSE 3000
 | 
						|
 | 
						|
# Start the application
 | 
						|
CMD ["npm", "start"]
 |