docker
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build and Push Docker Images / Build and Push Docker Images (push) Failing after 34s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build and Push Docker Images / Build and Push Docker Images (push) Failing after 34s
				
			This commit is contained in:
		
							
								
								
									
										18
									
								
								.build/prod/bun.Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.build/prod/bun.Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
FROM oven/bun:1.1.42-debian AS builder
 | 
			
		||||
WORKDIR /var/www/html
 | 
			
		||||
ENV NEXT_TELEMETRY_DISABLED=1
 | 
			
		||||
 | 
			
		||||
COPY . .
 | 
			
		||||
RUN bun install --frozen-lockfile
 | 
			
		||||
RUN bunx prisma generate
 | 
			
		||||
RUN bun run build
 | 
			
		||||
 | 
			
		||||
FROM oven/bun:1.1.42-debian
 | 
			
		||||
WORKDIR /var/www/html
 | 
			
		||||
COPY --from=builder /var/www/html/package.json ./
 | 
			
		||||
COPY --from=builder /var/www/html/node_modules ./node_modules
 | 
			
		||||
COPY --from=builder /var/www/html/.next ./.next
 | 
			
		||||
COPY --from=builder /var/www/html/public ./public
 | 
			
		||||
COPY --from=builder /var/www/html/prisma ./prisma
 | 
			
		||||
VOLUME /var/www/html
 | 
			
		||||
CMD ["bun", "start"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user