mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Merge branch 'fix/docker' into 'v4'
Reduce Docker image size See merge request Kwoth/nadekobot!249
This commit is contained in:
		
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -25,12 +25,14 @@ WORKDIR /app
 | 
				
			|||||||
RUN set -xe; \
 | 
					RUN set -xe; \
 | 
				
			||||||
    useradd -m nadeko; \
 | 
					    useradd -m nadeko; \
 | 
				
			||||||
    apt-get update; \
 | 
					    apt-get update; \
 | 
				
			||||||
    apt-get install -y libopus0 libsodium23 libsqlite3-0 curl ffmpeg python3 python3-pip sudo; \
 | 
					    apt-get install -y --no-install-recommends libopus0 libsodium23 libsqlite3-0 curl ffmpeg python3 python3-pip sudo; \
 | 
				
			||||||
    update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1; \
 | 
					    update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1; \
 | 
				
			||||||
    echo 'Defaults>nadeko env_keep+="ASPNETCORE_* DOTNET_* NadekoBot_* shard_id total_shards TZ"' > /etc/sudoers.d/nadeko; \
 | 
					    echo 'Defaults>nadeko env_keep+="ASPNETCORE_* DOTNET_* NadekoBot_* shard_id total_shards TZ"' > /etc/sudoers.d/nadeko; \
 | 
				
			||||||
    pip3 install --upgrade youtube-dl; \
 | 
					    pip3 install --no-cache-dir --upgrade youtube-dl; \
 | 
				
			||||||
    apt-get remove -y python3-pip; \
 | 
					    apt-get purge -y python3-pip; \
 | 
				
			||||||
    chmod +x /usr/local/bin/youtube-dl
 | 
					    chmod +x /usr/local/bin/youtube-dl; \
 | 
				
			||||||
 | 
					    apt-get autoremove -y; \
 | 
				
			||||||
 | 
					    apt-get autoclean -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --from=build /app ./
 | 
					COPY --from=build /app ./
 | 
				
			||||||
COPY docker-entrypoint.sh /usr/local/sbin
 | 
					COPY docker-entrypoint.sh /usr/local/sbin
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user