ytsm/Dockerfile

25 lines
444 B
Docker
Raw 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_PATH='/usr/src/ytsm/data'
VOLUME /usr/src/ytsm/config
VOLUME /usr/src/ytsm/data
COPY ./app/ ./
COPY ./docker/init.sh ./
COPY ./config/ /usr/src/ytsm/config/
EXPOSE 8000
CMD ["/bin/bash", "init.sh"]