from python:3 # 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 RUN chmod 0555 /usr/bin/caddy EXPOSE 9999 COPY requirements.txt ./ RUN pip install -r ./requirements.txt RUN mkdir /beets VOLUME /beets ENV BEETSDIR=/beets COPY ./config.yaml ./ COPY ./play.sh ./ ENTRYPOINT ["/usr/local/bin/beet"]