ytsm/Dockerfile

25 lines
426 B
Docker
Raw Permalink Normal View History

2018-10-30 06:15:49 +00:00
FROM python:3
WORKDIR /usr/src/ytsm/app
2018-10-30 06:15:49 +00:00
# ffmpeg is needed for youtube-dl
2018-10-30 06:15:49 +00:00
RUN apt-get update
RUN apt-get install ffmpeg -y
COPY ./requirements.txt ./
2018-10-30 06:15:49 +00:00
RUN pip install --no-cache-dir -r requirements.txt
ENV YTSM_DEBUG='False'
ENV YTSM_DATA_DIR='/usr/src/ytsm/data'
VOLUME /usr/src/ytsm/data
VOLUME /usr/src/ytsm/download
COPY ./app/ ./
COPY ./config/ ./
COPY ./docker/init.sh ./
EXPOSE 8000
CMD ["/bin/bash", "init.sh"]