2017-10-18 18:54:24 +00:00
|
|
|
FROM lsiobase/alpine.python
|
2017-10-16 23:27:19 +00:00
|
|
|
|
2017-10-16 23:58:19 +00:00
|
|
|
EXPOSE 6767
|
2017-10-19 23:50:54 +00:00
|
|
|
VOLUME /bazarr/data /tv
|
2017-10-16 23:58:19 +00:00
|
|
|
|
2017-10-16 23:27:19 +00:00
|
|
|
# Update
|
2017-10-18 18:54:24 +00:00
|
|
|
RUN apk add --update build-base python-dev py2-pip py-setuptools jpeg-dev zlib-dev git
|
|
|
|
|
2017-10-19 23:58:40 +00:00
|
|
|
WORKDIR /bazarr
|
|
|
|
|
2017-10-19 21:03:35 +00:00
|
|
|
# Get application source from Github
|
2017-10-19 23:58:40 +00:00
|
|
|
RUN git init
|
|
|
|
RUN git remote add origin https://github.com/morpheus65535/bazarr.git
|
|
|
|
RUN git fetch
|
|
|
|
RUN git reset origin/master # this is required if files in the non-empty directory are in the repo
|
2017-10-20 00:04:38 +00:00
|
|
|
RUN git checkout -t master
|
2017-10-19 23:58:40 +00:00
|
|
|
#RUN git clone -b master --single-branch https://github.com/morpheus65535/bazarr.git /bazarr
|
2017-10-16 23:27:19 +00:00
|
|
|
|
2017-10-19 21:20:45 +00:00
|
|
|
RUN ls /
|
|
|
|
RUN ls /bazarr
|
|
|
|
|
2017-10-19 21:03:35 +00:00
|
|
|
# Install app dependencies
|
2017-10-19 21:11:09 +00:00
|
|
|
RUN pip install -r /bazarr/requirements.txt
|
2017-10-19 21:03:35 +00:00
|
|
|
|
2017-10-18 18:54:24 +00:00
|
|
|
CMD ["python", "bazarr.py"]
|