mirror of
				https://github.com/aydenjahola/discord-multipurpose-bot.git
				synced 2025-11-04 00:01:41 +00:00 
			
		
		
		
	update Dockerfile
This commit is contained in:
		
							parent
							
								
									55f0701c65
								
							
						
					
					
						commit
						565c9fb513
					
				
					 1 changed files with 9 additions and 14 deletions
				
			
		
							
								
								
									
										23
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								Dockerfile
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -1,22 +1,17 @@
 | 
			
		|||
FROM jrottenberg/ffmpeg:8-alpine AS ffmpeg
 | 
			
		||||
FROM node:20-slim
 | 
			
		||||
 | 
			
		||||
FROM node:current-alpine
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/
 | 
			
		||||
COPY --from=ffmpeg /usr/local/bin/ffprobe /usr/local/bin/
 | 
			
		||||
 | 
			
		||||
RUN apk add --no-cache \
 | 
			
		||||
    python3 \
 | 
			
		||||
    make \
 | 
			
		||||
    g++ \
 | 
			
		||||
    && npm install -g npm@latest
 | 
			
		||||
 | 
			
		||||
WORKDIR /usr/src/app
 | 
			
		||||
RUN apt-get update && \
 | 
			
		||||
    apt-get install -y ffmpeg && \
 | 
			
		||||
    rm -rf /var/lib/apt/lists/*
 | 
			
		||||
 | 
			
		||||
COPY package*.json ./
 | 
			
		||||
 | 
			
		||||
RUN npm install
 | 
			
		||||
RUN npm install --production
 | 
			
		||||
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
CMD ["node", "."]
 | 
			
		||||
ENV NODE_ENV=production
 | 
			
		||||
 | 
			
		||||
CMD ["node", "index.js"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue