RUNNING CONTAINER
docker run -d -p 80:80 -p 443:443 -v $HOME:/usr/tux --name youtube "image"
docker exec -it "container name" zsh
RUNNING YOUTUBE2MP3 IN THE CONTAINER
Example : python youtube2mp3.py https://www.youtube.com/watch\?v\=QNmYGRgYoDw
Dockerfile
FROM alpine:latest
# Install essential packages
RUN apk add --no-cache wget unzip vim zsh git zsh-autosuggestions zsh-syntax-highlighting bind-tools ffmpeg curl && \
rm -rf /var/cache/apk/*
RUN sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
RUN echo "source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc && \
echo "source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
# Install python/pip
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools ipython youtube_dl ffmpeg
# Make directory which will contain the packer project and expose as volume
RUN mkdir -p /usr/tux
VOLUME /usr/tux
# Copy my .vimrc into the container
COPY .vimrc /usr/tux
# Change working directory
WORKDIR /usr/tux
CMD sleep infinity
Content type
Image
Digest
Size
79.8 MB
Last updated
over 5 years ago
docker pull ddebeul/my-container