mirror of https://github.com/btahir/next-beats
				
				
				
			add docker support
							parent
							
								
									9a71a0b0e4
								
							
						
					
					
						commit
						66c48f260f
					
				@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					.git
 | 
				
			||||||
 | 
					.gitignore
 | 
				
			||||||
 | 
					node_modules
 | 
				
			||||||
 | 
					npm-debug.log
 | 
				
			||||||
 | 
					README.md
 | 
				
			||||||
 | 
					.next
 | 
				
			||||||
 | 
					.env
 | 
				
			||||||
 | 
					.env.local
 | 
				
			||||||
 | 
					.DS_Store
 | 
				
			||||||
 | 
					docker-compose.yml
 | 
				
			||||||
 | 
					Dockerfile
 | 
				
			||||||
 | 
					.dockerignore
 | 
				
			||||||
@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					# 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"]
 | 
				
			||||||
					Loading…
					
					
				
		Reference in New Issue