refactor: dockerfile
This commit is contained in:
		
							
								
								
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,19 +1,7 @@
 | 
			
		||||
FROM oven/bun:1.1.40-slim
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
# Copy package files
 | 
			
		||||
 | 
			
		||||
# Install dependencies
 | 
			
		||||
COPY package.json .
 | 
			
		||||
RUN bun i
 | 
			
		||||
# COPY package.json bun.lockb ./
 | 
			
		||||
# RUN bun install --frozen-lockfile
 | 
			
		||||
 | 
			
		||||
# Copy source code
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
# Expose the application port
 | 
			
		||||
EXPOSE 3000
 | 
			
		||||
 | 
			
		||||
# Start the application
 | 
			
		||||
CMD ["bun", "run", "start"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user