mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Merge branch 'v3-docker' into 'v3'
install youtube-dl through pip for a better availability of cdn See merge request Kwoth/nadekobot!165
This commit is contained in:
		@@ -24,10 +24,11 @@ WORKDIR /app
 | 
			
		||||
RUN set -xe; \
 | 
			
		||||
    useradd -m nadeko; \
 | 
			
		||||
    apt-get update; \
 | 
			
		||||
    apt-get install -y libopus0 libsodium23 libsqlite3-0 curl ffmpeg python3 sudo; \
 | 
			
		||||
    apt-get install -y libopus0 libsodium23 libsqlite3-0 curl ffmpeg python3 python3-pip sudo; \
 | 
			
		||||
    update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1; \
 | 
			
		||||
    echo 'Defaults>nadeko env_keep+="ASPNETCORE_* DOTNET_* NadekoBot_* shard_id total_shards TZ"' > /etc/sudoers.d/nadeko; \
 | 
			
		||||
    curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl; \
 | 
			
		||||
    pip3 install --upgrade youtube-dl; \
 | 
			
		||||
    apt-get remove -y python3-pip; \
 | 
			
		||||
    chmod +x /usr/local/bin/youtube-dl
 | 
			
		||||
 | 
			
		||||
COPY --from=build /app ./
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user