my-beets/Dockerfile

24 lines
521 B
Docker
Raw Normal View History

2019-06-28 23:54:39 +00:00
from python:3
2020-11-18 18:34:50 +00:00
# Add Vim for command line editing on import
RUN apt-get update && apt-get install -y --no-install-recommends vim
ENV EDITOR=vim
# Install Caddy file server
ADD https://caddyserver.com/api/download?os=linux&arch=amd64&idempotency=72456813110731 \
/usr/bin/caddy
2020-11-18 20:00:29 +00:00
RUN chmod 0555 /usr/bin/caddy
2020-11-18 18:52:38 +00:00
EXPOSE 9999
2020-11-18 18:34:50 +00:00
2019-06-28 23:54:39 +00:00
COPY requirements.txt ./
RUN pip install -r ./requirements.txt
RUN mkdir /beets
VOLUME /beets
ENV BEETSDIR=/beets
2020-11-18 18:34:50 +00:00
COPY ./config.yaml ./
COPY ./play.sh ./
2019-06-28 23:54:39 +00:00
2019-06-29 00:40:54 +00:00
ENTRYPOINT ["/usr/local/bin/beet"]